summaryrefslogtreecommitdiff
path: root/sysklogd/logger.c
diff options
context:
space:
mode:
authorEric Andersen2001-07-22 23:00:15 +0000
committerEric Andersen2001-07-22 23:00:15 +0000
commit8d79ce832062873e6328f616ebb0c80db32020e3 (patch)
treeeab4c5133f1c8d1fd898d13e000aae5c5673211b /sysklogd/logger.c
parent20aab260e2f7011523402464fb079f48e5899890 (diff)
downloadbusybox-8d79ce832062873e6328f616ebb0c80db32020e3.zip
busybox-8d79ce832062873e6328f616ebb0c80db32020e3.tar.gz
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 623a4f9..9f73091 100644
--- a/sysklogd/logger.c
+++ b/sysklogd/logger.c
@@ -36,17 +36,18 @@
#include <sys/syslog.h>
#else
-/* We have to do this since the header file defines static
- * structures. Argh.... bad libc, bad, bad...
- */
#include <sys/syslog.h>
-
-typedef struct _code {
- char *c_name;
- int c_val;
-} CODE;
-extern CODE prioritynames[];
-extern CODE facilitynames[];
+# ifndef __dietlibc__
+ /* We have to do this since the header file defines static
+ * structures. Argh.... bad libc, bad, bad...
+ */
+ typedef struct _code {
+ char *c_name;
+ int c_val;
+ } CODE;
+ extern CODE prioritynames[];
+ extern CODE facilitynames[];
+# endif
#endif
/* Decode a symbolic name to a numeric value