aboutsummaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-07-22 23:00:15 +0000
committerEric Andersen <andersen@codepoet.org>2001-07-22 23:00:15 +0000
commit8d79ce832062873e6328f616ebb0c80db32020e3 (patch)
treeeab4c5133f1c8d1fd898d13e000aae5c5673211b /sysklogd/logger.c
parent20aab260e2f7011523402464fb079f48e5899890 (diff)
downloadbusybox-w32-8d79ce832062873e6328f616ebb0c80db32020e3.tar.gz
busybox-w32-8d79ce832062873e6328f616ebb0c80db32020e3.tar.bz2
busybox-w32-8d79ce832062873e6328f616ebb0c80db32020e3.zip
Some patches to make dietlibc work...
Diffstat (limited to 'sysklogd/logger.c')
-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