aboutsummaryrefslogtreecommitdiff
path: root/sysklogd
diff options
context:
space:
mode:
Diffstat (limited to 'sysklogd')
-rw-r--r--sysklogd/logger.c21
1 files changed, 11 insertions, 10 deletions
diff --git a/sysklogd/logger.c b/sysklogd/logger.c
index 623a4f9e5..9f730915f 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -36,17 +36,18 @@
36#include <sys/syslog.h> 36#include <sys/syslog.h>
37 37
38#else 38#else
39/* We have to do this since the header file defines static
40 * structures. Argh.... bad libc, bad, bad...
41 */
42#include <sys/syslog.h> 39#include <sys/syslog.h>
43 40# ifndef __dietlibc__
44typedef struct _code { 41 /* We have to do this since the header file defines static
45 char *c_name; 42 * structures. Argh.... bad libc, bad, bad...
46 int c_val; 43 */
47} CODE; 44 typedef struct _code {
48extern CODE prioritynames[]; 45 char *c_name;
49extern CODE facilitynames[]; 46 int c_val;
47 } CODE;
48 extern CODE prioritynames[];
49 extern CODE facilitynames[];
50# endif
50#endif 51#endif
51 52
52/* Decode a symbolic name to a numeric value 53/* Decode a symbolic name to a numeric value