X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Fsyslog.h;h=c0fde1125b053e2ea30bc6bd70c9ecbeedf6c5bd;hb=67ba40d1e05c39ffe71294476d2f2c13c481f3bd;hp=7fc9232a647402fef2584607b64868dc4523053c;hpb=b5b43b6d6245efac10cd0d2b6d23ee8f91d75261;p=musl diff --git a/include/syslog.h b/include/syslog.h index 7fc9232a..c0fde112 100644 --- a/include/syslog.h +++ b/include/syslog.h @@ -1,5 +1,5 @@ -#ifndef _SYS_SYSLOG_H -#define _SYS_SYSLOG_H +#ifndef _SYSLOG_H +#define _SYSLOG_H #ifdef __cplusplus extern "C" { @@ -59,9 +59,12 @@ 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) || defined(_BSD_SOURCE) +#define _PATH_LOG "/dev/log" #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 +92,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