add _Noreturn function attribute, with fallback for pre-C11 GNUC
[musl] / include / syslog.h
index d7668d3..c0fde11 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _SYS_SYSLOG_H
-#define _SYS_SYSLOG_H
+#ifndef _SYSLOG_H
+#define _SYSLOG_H
 
 #ifdef __cplusplus
 extern "C" {
@@ -59,11 +59,12 @@ void openlog (const char *, int, int);
 int setlogmask (int);
 void syslog (int, const char *, ...);
 
-#if defined(_GNU_SOURCE)
-void vsyslog (int, const char *, va_list);
-#if defined(SYSLOG_NAMES)
+#if defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
+#define _PATH_LOG "/dev/log"
 #define __NEED_va_list
 #include <bits/alltypes.h>
+void vsyslog (int, const char *, va_list);
+#if defined(SYSLOG_NAMES)
 #define        INTERNAL_NOPRI 0x10
 #define        INTERNAL_MARK (LOG_NFACILITIES<<3)
 struct __CODE {