From 56cce133d979c22bbef80fdba1881d8f40876e2f Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 5 Mar 2012 22:37:20 +0000 Subject: accept4: require SOCK_NONBLOCK/SOCK_CLOEXEC macros 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. --- ext/kgio/missing_accept4.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3-24-ge0c7