summaryrefslogtreecommitdiff
path: root/file_io/unix/pipe.c
diff options
context:
space:
mode:
authorPeter Wemm <peter@FreeBSD.org>2014-05-27 07:00:33 +0000
committerPeter Wemm <peter@FreeBSD.org>2014-05-27 07:00:33 +0000
commitbc9ddba9ef9abe23eadcdb51b2ce814c00c00639 (patch)
tree6266be92f31f93e7851b958a90b1f93c3aefbbe8 /file_io/unix/pipe.c
parentf2be5817e9c3cb98a81689acb42dc6549ae0448f (diff)
Notes
Diffstat (limited to 'file_io/unix/pipe.c')
-rw-r--r--file_io/unix/pipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/file_io/unix/pipe.c b/file_io/unix/pipe.c
index 7b8f01fb92aa..571d9bcb8e99 100644
--- a/file_io/unix/pipe.c
+++ b/file_io/unix/pipe.c
@@ -25,8 +25,8 @@
* but now fcntl does, hence we need to do this extra checking.
* The joys of beta programs. :-)
*/
-#if BEOS
-#if !BONE7
+#if defined(BEOS)
+#if !defined(BONE7)
# define BEOS_BLOCKING 1
#else
# define BEOS_BLOCKING 0
@@ -35,7 +35,7 @@
static apr_status_t pipeblock(apr_file_t *thepipe)
{
-#if !BEOS_BLOCKING
+#if !defined(BEOS) || !BEOS_BLOCKING
int fd_flags;
fd_flags = fcntl(thepipe->filedes, F_GETFL, 0);
@@ -71,7 +71,7 @@ static apr_status_t pipeblock(apr_file_t *thepipe)
static apr_status_t pipenonblock(apr_file_t *thepipe)
{
-#if !BEOS_BLOCKING
+#if !defined(BEOS) || !BEOS_BLOCKING
int fd_flags = fcntl(thepipe->filedes, F_GETFL, 0);
# if defined(O_NONBLOCK)