From: Roy Marples Date: Fri, 5 Sep 2008 15:28:08 +0000 (+0000) Subject: Fix the define for GLIBC. uClibc just passes syslog to printf, so assume %m works... X-Git-Tag: v5.0.0~286 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4119774e53a495666d9c28dcf0ba06f5ad37361a;p=thirdparty%2Fdhcpcd.git Fix the define for GLIBC. uClibc just passes syslog to printf, so assume %m works there also. --- diff --git a/logger.c b/logger.c index d098d722..fbd71fb4 100644 --- a/logger.c +++ b/logger.c @@ -42,12 +42,10 @@ * uClibc does support it, but it's not enabled by default. */ #ifndef HAVE_PRINTF_M # ifdef __GLIBC__ -# if !defined(__UCLIBC__) && !defined (__dietlibc__) -# define HAVE_PRINT_M 1 -# endif +# define HAVE_PRINTF_M 1 # endif -# ifndef HAVE_PRINT_M -# define HAVE_PRINT_M 0 +# ifndef HAVE_PRINTF_M +# define HAVE_PRINTF_M 0 # endif #endif