* nscd/connections.c (nscd_init): Type if preprocessor directive.

* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
	Define.
This commit is contained in:
Ulrich Drepper 2008-07-30 16:33:19 +00:00
parent a707cff63d
commit bd7f48571d
5 changed files with 13 additions and 1 deletions

View File

@ -1,5 +1,10 @@
2008-07-30 Ulrich Drepper <drepper@redhat.com>
* nscd/connections.c (nscd_init): Type if preprocessor directive.
* sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_PACCEPT):
Define.
* misc/syslog.c (openlog_internal): Fix compile problem.
2008-07-28 Roland McGrath <roland@redhat.com>

View File

@ -1,3 +1,7 @@
2008-07-30 Ulrich Drepper <drepper@redhat.com>
* tst-align2.c (f): Print message that f is reached.
2008-04-28 Hiroki Kaminaga <kaminaga@sm.sony.co.jp>
[BZ #6740]

View File

@ -31,6 +31,8 @@ f (void *arg)
{
bool ok = true;
puts ("in f");
if (TEST_STACK_ALIGN ())
ok = false;

View File

@ -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

View File

@ -506,4 +506,5 @@
# define __ASSUME_SOCK_CLOEXEC 1
# define __ASSUME_IN_NONBLOCK 1
# define __ASSUME_PIPE2 1
# define __ASSUME_PACCEPT 1
#endif