about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2012-03-05 22:37:20 +0000
committerEric Wong <normalperson@yhbt.net>2012-03-05 23:21:28 +0000
commit56cce133d979c22bbef80fdba1881d8f40876e2f (patch)
tree6dc4e4f9ffae7f07f78b1f1c96af3c326e3e5214
parent3e7bd918153cd09dd3bdd4e6963e173ae050ae68 (diff)
downloadkgio-56cce133d979c22bbef80fdba1881d8f40876e2f.tar.gz
The check for the accept4() function actually succeeds on a
stock installation of Debian GNU/kFreeBSD 6.0, but the
eglibc headers fail to define the necessary flags.
-rw-r--r--ext/kgio/missing_accept4.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/kgio/missing_accept4.h b/ext/kgio/missing_accept4.h
index 2801b5d..3e9ec67 100644
--- a/ext/kgio/missing_accept4.h
+++ b/ext/kgio/missing_accept4.h
@@ -1,4 +1,4 @@
-#ifndef HAVE_ACCEPT4
+#if !defined(HAVE_ACCEPT4) || !defined(SOCK_CLOEXEC) || !defined(SOCK_NONBLOCK)
 #  ifndef _GNU_SOURCE
 #    define _GNU_SOURCE
 #  endif