projects
/
musl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9cfa306
)
move vsyslog out of SYSLOG_NAMES conditional
author
Rich Felker
<dalias@aerifal.cx>
Fri, 11 May 2012 02:41:54 +0000
(22:41 -0400)
committer
Rich Felker
<dalias@aerifal.cx>
Fri, 11 May 2012 02:41:54 +0000
(22:41 -0400)
include/syslog.h
patch
|
blob
|
history
diff --git
a/include/syslog.h
b/include/syslog.h
index
7fc9232
..
d7668d3
100644
(file)
--- 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 *, ...);
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
#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 } })
{ "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
#endif
#ifdef __cplusplus