Project

General

Profile

Bug #15787 » ruby-changes.patch

Ruby Haiku patch - extrowerk (Zoltán Mizsei), 05/05/2019 10:14 AM

View differences:

ruby.c (working copy)
2062 2062
	int fd;
2063 2063
	/* open(2) may block if fname is point to FIFO and it's empty. Let's
2064 2064
	   use O_NONBLOCK. */
2065
#if defined O_NONBLOCK && HAVE_FCNTL && !(O_NONBLOCK & O_ACCMODE)
2065
	/*Do not set O_NONBLOCK or O_NDELAY on Haiku, as it unsupported to \
2066
	   unset them on packaged FS. Just use O_RDONLY instead.*/
2067
#if defined O_NONBLOCK && HAVE_FCNTL && !(O_NONBLOCK & O_ACCMODE) && !defined(__HAIKU__)
2066 2068
	/* TODO: fix conflicting O_NONBLOCK in ruby/win32.h */
2067 2069
# define MODE_TO_LOAD (O_RDONLY | O_NONBLOCK)
2068
#elif defined O_NDELAY && HAVE_FCNTL && !(O_NDELAY & O_ACCMODE)
2070
#elif defined O_NDELAY && HAVE_FCNTL && !(O_NDELAY & O_ACCMODE) && !defined(__HAIKU__)
2069 2071
# define MODE_TO_LOAD (O_RDONLY | O_NDELAY)
2070 2072
#else
2071 2073
# define MODE_TO_LOAD (O_RDONLY)