summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/sys/syslog.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sys/syslog.h b/include/sys/syslog.h
index cbbc31e19..e8fc4e71e 100644
--- a/include/sys/syslog.h
+++ b/include/sys/syslog.h
@@ -71,6 +71,9 @@ typedef struct _code {
int c_val;
} CODE;
+#ifdef SYSLOG_NAMES_CONST
+const
+#endif
CODE prioritynames[] =
{
{ "alert", LOG_ALERT },
@@ -119,6 +122,9 @@ CODE prioritynames[] =
#define LOG_FAC(p) (((p) & LOG_FACMASK) >> 3)
#ifdef SYSLOG_NAMES
+#ifdef SYSLOG_NAMES_CONST
+const
+#endif
CODE facilitynames[] =
{
{ "auth", LOG_AUTH },