diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/lib.c | 1 | ||||
-rw-r--r-- | lib/portability.h | 5 |
2 files changed, 6 insertions, 0 deletions
@@ -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 |