aboutsummaryrefslogtreecommitdiff
path: root/nscd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2008-07-30 16:33:19 +0000
committerUlrich Drepper <drepper@redhat.com>2008-07-30 16:33:19 +0000
commitbd7f48571d8bca9fd9072aad409c30e0e2cbc2e0 (patch)
tree627d08943183bbb8f5948410f6f691ed22323199 /nscd
parenta707cff63d72f4e9d1a755b42444daef78f306b2 (diff)
downloadglibc-bd7f48571d8bca9fd9072aad409c30e0e2cbc2e0.tar
glibc-bd7f48571d8bca9fd9072aad409c30e0e2cbc2e0.tar.gz
glibc-bd7f48571d8bca9fd9072aad409c30e0e2cbc2e0.tar.bz2
glibc-bd7f48571d8bca9fd9072aad409c30e0e2cbc2e0.zip
* nscd/connections.c (nscd_init): Type if preprocessor directive.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT): Define.
Diffstat (limited to 'nscd')
-rw-r--r--nscd/connections.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/nscd/connections.c b/nscd/connections.c
index a1b92f466b..8281533c3b 100644
--- a/nscd/connections.c
+++ b/nscd/connections.c
@@ -880,7 +880,7 @@ cannot set socket to close on exec: %s; disabling paranoia mode"),
#endif
{
sock = socket (AF_UNIX, SOCK_STREAM | SOCK_CLOEXEC | SOCK_NONBLOCK, 0);
-#ifdef __ASSUME_SOCK_CLOEXEC
+#ifndef __ASSUME_SOCK_CLOEXEC
if (have_sock_cloexec == 0)
have_sock_cloexec = sock != -1 || errno != EINVAL ? 1 : -1;
#endif