about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2010-09-28 02:56:41 +0000
committerEric Wong <e@yhbt.net>2010-09-27 19:58:55 -0700
commit20cbc0355104470fb433dd13e87a5d5c7e888ab1 (patch)
tree67fead9f7f78c3f35ccf4286af310abe68ed211d
parent24f1d168eb0937f0586c45b266bcd208431f0107 (diff)
downloadkgio-20cbc0355104470fb433dd13e87a5d5c7e888ab1.tar.gz
Oops :x  Tested on Debian sid.
-rw-r--r--ext/kgio/missing/accept4.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/kgio/missing/accept4.h b/ext/kgio/missing/accept4.h
index 482f3ad..8fc37c4 100644
--- a/ext/kgio/missing/accept4.h
+++ b/ext/kgio/missing/accept4.h
@@ -1,4 +1,7 @@
-#ifndef HAVE_ACCEPT4
+#ifdef HAVE_ACCEPT4
+#  define A4_SOCK_CLOEXEC SOCK_CLOEXEC
+#  define A4_SOCK_NONBLOCK SOCK_NONBLOCK
+#else
 #  ifndef _GNU_SOURCE
 #    define _GNU_SOURCE
 #  endif