Code

src/collectd.h: Don't mess with the syslog-stuff if it's present.
authorMichael Shigorin <mike@osdn.org.ua>
Fri, 22 Dec 2006 14:06:42 +0000 (15:06 +0100)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Fri, 22 Dec 2006 14:06:42 +0000 (15:06 +0100)
No idea where it came from, but it's not necessary, thus remove it. This even
resolves a conflice with some newer glibc version.

src/collectd.h

index 2ce0a155639a95b07a17a638db180fc9514f035a..a5c81694753c4c8ecfce7f2d676a1d193534f2bf 100644 (file)
 # include <sys/param.h>
 #endif
 
-#if HAVE_SYSLOG
-# define syslog(...) syslog(__VA_ARGS__)
-# if HAVE_OPENLOG
-#  define openlog(...) openlog(__VA_ARGS__)
-# else
-#  define openlog(...) /**/
-# endif
-# if HAVE_CLOSELOG
-#  define closelog(...) closelog(__VA_ARGS__)
-# else
-#  define closelog(...) /**/
-# endif
-#else
+#if !HAVE_SYSLOG
 # define syslog(...) /**/
 # define openlog(...) /**/
 # define closelog(...) /**/