X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsyslog.h;h=e0d86c0d33466b7f08714290df6155d68cb77dbd;hb=c3dbe9b22c93c187d806f5def44da5b47744923c;hp=7fc9232a647402fef2584607b64868dc4523053c;hpb=b5b43b6d6245efac10cd0d2b6d23ee8f91d75261;p=musl diff --git a/include/syslog.h b/include/syslog.h index 7fc9232a..e0d86c0d 100644 --- a/include/syslog.h +++ b/include/syslog.h @@ -59,9 +59,11 @@ 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) #define __NEED_va_list #include +void vsyslog (int, const char *, va_list); +#if defined(SYSLOG_NAMES) #define INTERNAL_NOPRI 0x10 #define INTERNAL_MARK (LOG_NFACILITIES<<3) struct __CODE { @@ -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