diff options
author | Ulrich Drepper <drepper@redhat.com> | 2008-12-08 04:08:51 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2008-12-08 04:08:51 +0000 |
commit | 200da00a7c9948b3cb655608d4db4ac595a8269f (patch) | |
tree | a3ceee5608c08ed83acc9d3be2cb0f5714cf429c /resolv | |
parent | 905ef0daeb2fa3d685d924cdd8cbd6a4b19df8b8 (diff) | |
download | glibc-200da00a7c9948b3cb655608d4db4ac595a8269f.zip glibc-200da00a7c9948b3cb655608d4db4ac595a8269f.tar.gz glibc-200da00a7c9948b3cb655608d4db4ac595a8269f.tar.bz2 |
* resolv/res_send.c (send_dg): Use correct guards for SOCK_CLOEXEC
use.
* sysdeps/unix/sysv/linux/kernel-features.h: Fix typo in accept4
handling.
Diffstat (limited to 'resolv')
-rw-r--r-- | resolv/res_send.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/resolv/res_send.c b/resolv/res_send.c index ce4c11f..f75a26e 100644 --- a/resolv/res_send.c +++ b/resolv/res_send.c @@ -104,7 +104,7 @@ static const char rcsid[] = "$BINDId: res_send.c,v 8.38 2000/03/30 20:16:51 vixi #endif -#ifndef __ASSUME_O_CLOEXEC +#ifndef __ASSUME_SOCK_CLOEXEC static int __have_o_nonblock; #else # define __have_o_nonblock 0 @@ -932,7 +932,7 @@ send_dg(res_state statp, EXT(statp).nssocks[ns] = socket(PF_INET6, SOCK_DGRAM|SOCK_NONBLOCK, 0); -#ifndef __ASSUME_O_CLOEXEC +#ifndef __ASSUME_SOCK_CLOEXEC if (__have_o_nonblock == 0) __have_o_nonblock = (EXT(statp).nssocks[ns] == -1 @@ -954,7 +954,7 @@ send_dg(res_state statp, EXT(statp).nssocks[ns] = socket(PF_INET, SOCK_DGRAM|SOCK_NONBLOCK, 0); -#ifndef __ASSUME_O_CLOEXEC +#ifndef __ASSUME_SOCK_CLOEXEC if (__have_o_nonblock == 0) __have_o_nonblock = (EXT(statp).nssocks[ns] == -1 |