提交 c8b01e73 编写于 作者: R Rich Felker

move vsyslog out of SYSLOG_NAMES conditional

上级 9cfa3065
...@@ -59,7 +59,9 @@ void openlog (const char *, int, int); ...@@ -59,7 +59,9 @@ void openlog (const char *, int, int);
int setlogmask (int); int setlogmask (int);
void syslog (int, const char *, ...); 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 #define __NEED_va_list
#include <bits/alltypes.h> #include <bits/alltypes.h>
#define INTERNAL_NOPRI 0x10 #define INTERNAL_NOPRI 0x10
...@@ -89,7 +91,7 @@ typedef struct { ...@@ -89,7 +91,7 @@ typedef struct {
{ "local2", LOG_LOCAL2 }, { "local3", LOG_LOCAL3 }, \ { "local2", LOG_LOCAL2 }, { "local3", LOG_LOCAL3 }, \
{ "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, \ { "local4", LOG_LOCAL4 }, { "local5", LOG_LOCAL5 }, \
{ "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { NULL, -1 } }) { "local6", LOG_LOCAL6 }, { "local7", LOG_LOCAL7 }, { NULL, -1 } })
void vsyslog (int, const char *, va_list); #endif
#endif #endif
#ifdef __cplusplus #ifdef __cplusplus
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册