summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-10 22:41:54 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-10 22:41:54 -0400
commitc8b01e73cad6a3edea7bfdf4e674f945fd7b6de3 (patch)
tree3de6c9fdb978ead1fe78e99466338834d6290c46 /include
parent9cfa3065c576e83949d659df0bba59e901671bc3 (diff)
downloadmusl-c8b01e73cad6a3edea7bfdf4e674f945fd7b6de3.tar.gz
move vsyslog out of SYSLOG_NAMES conditional
Diffstat (limited to 'include')
-rw-r--r--include/syslog.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/syslog.h b/include/syslog.h
index 7fc9232a..d7668d35 100644
--- a/include/syslog.h
+++ b/include/syslog.h
@@ -59,7 +59,9 @@ void openlog (const char *, int, int);
int setlogmask (int);
void syslog (int, const char *, ...);
-#if defined(_GNU_SOURCE) && defined(SYSLOG_NAMES)
+#if defined(_GNU_SOURCE)
+void vsyslog (int, const char *, va_list);
+#if defined(SYSLOG_NAMES)
#define __NEED_va_list
#include <bits/alltypes.h>
#define INTERNAL_NOPRI 0x10
@@ -89,7 +91,7 @@ typedef struct {
{ "local2", LOG_LOCAL2 }, { "local3", LOG_LOCAL3 }, \
{ "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, \
{ "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { NULL, -1 } })
-void vsyslog (int, const char *, va_list);
+#endif
#endif
#ifdef __cplusplus