patches/glibc/2.9/560-syslog.patch
author Matthieu Crapet <mcrapet@gmail.com>
Wed Jun 06 12:03:12 2012 +0200 (2012-06-06)
changeset 2991 252ade1e9e17
permissions -rw-r--r--
libc/eglibc: fix missing LIBC_TRY_CC_OPTION definition (eglibc 2.15)

Upstream SVN is currently broken:
http://www.eglibc.org/svn/branches/eglibc-2_15/libc/

LIBC_TRY_CC_OPTION macro is not defined in aclocal.m4.
This patch fix the configure script.

Once upstream branch will be fixed this patch could be reverted.

Related patch (committed to eglibc trunk):
Use autoconf macro for testing compiler options with empty input
http://sourceware.org/ml/libc-alpha/2012-03/msg00816.html

Signed-off-by: Matthieu Crapet <mcrapet@gmail.com>

diff -r 1f6c8e4b2b92 -r d10afc5bcc25
patches/eglibc/2_15/110-aclocal-LIBC_TRY_CC_OPTION.patch
yann@1394
     1
diff -durN glibc-cvs-2.9.orig/misc/syslog.c glibc-cvs-2.9/misc/syslog.c
yann@1394
     2
--- glibc-cvs-2.9.orig/misc/syslog.c	2009-06-01 10:16:50.000000000 +0200
yann@1394
     3
+++ glibc-cvs-2.9/misc/syslog.c	2009-06-01 10:17:20.000000000 +0200
yann@1394
     4
@@ -152,7 +152,7 @@
yann@1394
     5
 #define	INTERNALLOG	LOG_ERR|LOG_CONS|LOG_PERROR|LOG_PID
yann@1394
     6
 	/* Check for invalid bits. */
yann@1394
     7
 	if (pri & ~(LOG_PRIMASK|LOG_FACMASK)) {
yann@1394
     8
-		syslog(INTERNALLOG,
yann@1394
     9
+		__syslog(INTERNALLOG,
yann@1394
    10
 		    "syslog: unknown facility/priority: %x", pri);
yann@1394
    11
 		pri &= LOG_PRIMASK|LOG_FACMASK;
yann@1394
    12
 	}