changeset 947:fdfd5b67ebc8 draft

Fix the define for GLIBC. uClibc just passes syslog to printf, so assume %m works there also.
author Roy Marples <roy@marples.name>
date Fri, 05 Sep 2008 15:28:08 +0000
parents c1bfb85d50b9
children 4a8387866485
files logger.c
diffstat 1 files changed, 3 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/logger.c	Fri Sep 05 14:16:53 2008 +0000
+++ b/logger.c	Fri Sep 05 15:28:08 2008 +0000
@@ -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