aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/lib.c1
-rw-r--r--lib/portability.h5
2 files changed, 6 insertions, 0 deletions
diff --git a/lib/lib.c b/lib/lib.c
index c4c4a149..8a818575 100644
--- a/lib/lib.c
+++ b/lib/lib.c
@@ -3,6 +3,7 @@
* Copyright 2006 Rob Landley <rob@landley.net>
*/
+#define SYSLOG_NAMES
#include "toys.h"
void verror_msg(char *msg, int err, va_list va)
diff --git a/lib/portability.h b/lib/portability.h
index e62de139..50c935b5 100644
--- a/lib/portability.h
+++ b/lib/portability.h
@@ -246,3 +246,8 @@ pid_t xfork(void);
static inline int get_sched_policy(int tid, void *policy) {return 0;}
static inline char *get_sched_policy_name(int policy) {return "unknown";}
#endif
+
+#ifndef SYSLOG_NAMES
+typedef struct {char *c_name; int c_val;} CODE;
+extern CODE prioritynames[], facilitynames[];
+#endif