aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Certner <olce@FreeBSD.org>2024-12-02 15:06:29 +0000
committerOlivier Certner <olce@FreeBSD.org>2024-12-16 14:42:32 +0000
commit8cdb0458e12e6fac577cfb2277e7e85d3c21fa09 (patch)
treeb2d78c73d1cf9ad5817f195e80bb3d4a815f9876
parentd2be7ed63affd8af5fe6203002b7cc3cbe7f7891 (diff)
syscallsubr.h: Header inclusions: Explicit <sys/types.h>, sort
<sys/types.h> is currently brought in by other headers but some of its type definition are directly used in this header, so it should appear explicitly. It is necessary as lots of prototypes in there use types it defines (<sys/_types.h> wouldn't be enough). Sort header inclusions as per style(9). No functional change (intended). Approved by: markj (mentor) MFC after: 5 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D47881
-rw-r--r--sys/sys/syscallsubr.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/sys/sys/syscallsubr.h b/sys/sys/syscallsubr.h
index a7f3d2307df1..29b0a455970b 100644
--- a/sys/sys/syscallsubr.h
+++ b/sys/sys/syscallsubr.h
@@ -28,13 +28,14 @@
#ifndef _SYS_SYSCALLSUBR_H_
#define _SYS_SYSCALLSUBR_H_
-#include <sys/signal.h>
-#include <sys/socket.h>
-#include <sys/mac.h>
-#include <sys/mount.h>
+#include <sys/types.h>
#include <sys/_cpuset.h>
#include <sys/_domainset.h>
#include <sys/_uio.h>
+#include <sys/mac.h>
+#include <sys/mount.h>
+#include <sys/signal.h>
+#include <sys/socket.h>
struct __wrusage;
struct cpuset_copy_cb;