summaryrefslogtreecommitdiffstats
path: root/contrib/apr/file_io/unix/pipe.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2014-08-12 01:40:11 +0000
committerpeter <peter@FreeBSD.org>2014-08-12 01:40:11 +0000
commit72d63a715ab3bb85109696154deb9b90d0495852 (patch)
treece225c894795f3e26aadf9170baf8fd0556c18d2 /contrib/apr/file_io/unix/pipe.c
parentd307c6d3b7fc94a241aab28f56b9e92a10d98bee (diff)
downloadFreeBSD-src-72d63a715ab3bb85109696154deb9b90d0495852.zip
FreeBSD-src-72d63a715ab3bb85109696154deb9b90d0495852.tar.gz
MFC r266728,266731,266735,266736,268135,268960,269833
Update apr 1.4.8 -> 1.5.1 Update apr-util 1.5.2 -> 1.5.3 Update serf 1.3.4 -> 1.3.7 Update svnlite 1.8.8 -> 1.8.10 Deal with svnlite.1 manpage.
Diffstat (limited to 'contrib/apr/file_io/unix/pipe.c')
-rw-r--r--contrib/apr/file_io/unix/pipe.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/apr/file_io/unix/pipe.c b/contrib/apr/file_io/unix/pipe.c
index 7b8f01f..571d9bc 100644
--- a/contrib/apr/file_io/unix/pipe.c
+++ b/contrib/apr/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)
OpenPOWER on IntegriCloud