diff options
-rw-r--r-- | common.c | 12 | ||||
-rw-r--r-- | kike.c | 1 |
2 files changed, 8 insertions, 5 deletions
@@ -22,11 +22,13 @@ #define LIBERTY_WANT_POLLER #define LIBERTY_WANT_PROTO_IRC -#define print_fatal_data ((void *) LOG_ERR) -#define print_error_data ((void *) LOG_ERR) -#define print_warning_data ((void *) LOG_WARNING) -#define print_status_data ((void *) LOG_INFO) -#define print_debug_data ((void *) LOG_DEBUG) +#ifdef WANT_SYSLOG_LOGGING + #define print_fatal_data ((void *) LOG_ERR) + #define print_error_data ((void *) LOG_ERR) + #define print_warning_data ((void *) LOG_WARNING) + #define print_status_data ((void *) LOG_INFO) + #define print_debug_data ((void *) LOG_DEBUG) +#endif // WANT_SYSLOG_LOGGING #include "liberty/liberty.c" #include <arpa/inet.h> @@ -22,6 +22,7 @@ #undef PROGRAM_NAME #define PROGRAM_NAME "kike" +#define WANT_SYSLOG_LOGGING #include "common.c" #include "kike-replies.c" #include <nl_types.h> |