Module Name: src
Committed By: dholland
Date: Thu Oct 15 06:15:22 UTC 2015
Modified Files:
src/sys/sys: syslog.h
Log Message:
Include <sys/cdefs.h>, <sys/featuretest.h>, and <sys/ansi.h>
unconditionally, not only #ifndef _KERNEL. The kernel declarations
require cdefs.h and standard practice is to include cdefs.h where it's
used; they also require sys/ansi.h; and while they don't require
featuretest.h it's also harmless... and includes should be at the top
anyhow.
PR 46557 from Richard Hansen.
To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/sys/syslog.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/sys/syslog.h
diff -u src/sys/sys/syslog.h:1.37 src/sys/sys/syslog.h:1.38
--- src/sys/sys/syslog.h:1.37 Wed Oct 14 15:52:40 2015
+++ src/sys/sys/syslog.h Thu Oct 15 06:15:22 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: syslog.h,v 1.37 2015/10/14 15:52:40 christos Exp $ */
+/* $NetBSD: syslog.h,v 1.38 2015/10/15 06:15:22 dholland Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1993
@@ -34,6 +34,10 @@
#ifndef _SYS_SYSLOG_H_
#define _SYS_SYSLOG_H_
+#include <sys/cdefs.h>
+#include <sys/featuretest.h>
+#include <sys/ansi.h>
+
#define _PATH_LOG "/var/run/log"
/*
@@ -193,10 +197,6 @@ struct syslog_data {
.log_mask = 0xff, \
}
-#include <sys/cdefs.h>
-#include <sys/featuretest.h>
-#include <sys/ansi.h>
-
__BEGIN_DECLS
void closelog(void);
void openlog(const char *, int, int);