chiark / gitweb /
[PATCH] udevd - fix socket path length
[elogind.git] / logging.h
index e233ddc88972b59ff6906fc4eded9a069bb02f65..485209adf3a553595207e9fc4150df3ed77fe334 100644 (file)
--- a/logging.h
+++ b/logging.h
 #define info(format, arg...)           do { } while (0)
 #define dbg(format, arg...)            do { } while (0)
 #define dbg_parse(format, arg...)      do { } while (0)
+#define init_logging(foo)              do { } while (0)
 
 #ifdef LOG
 #include <stdarg.h>
+#include <unistd.h>
 #include <syslog.h>
 
 #undef info
@@ -69,6 +71,7 @@ static inline void log_message (int level, const char *format, ...)
 /* each program must declare this variable somewhere */
 extern unsigned char logname[42];
 
+#undef init_logging
 static inline void init_logging(char *program_name)
 {
        snprintf(logname, 42,"%s[%d]", program_name, getpid());