From 8d79ce832062873e6328f616ebb0c80db32020e3 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Sun, 22 Jul 2001 23:00:15 +0000 Subject: Some patches to make dietlibc work... --- sysklogd/logger.c | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) (limited to 'sysklogd/logger.c') 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 @@ #include #else -/* We have to do this since the header file defines static - * structures. Argh.... bad libc, bad, bad... - */ #include - -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 -- cgit v1.2.3