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