about summary refs log tree commit homepage
diff options
context:
space:
mode:
-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