summaryrefslogtreecommitdiff
path: root/src/regress/lib/libc/sys/macros.h
diff options
context:
space:
mode:
authorderaadt <>2021-12-13 16:56:48 +0000
committerderaadt <>2021-12-13 16:56:48 +0000
commit9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6 (patch)
tree4d79dae357e2afe076d7157a01ff32c7b7546acc /src/regress/lib/libc/sys/macros.h
parent29eb1fc4c6f8014bf067b8a9ade4cf476193f0d5 (diff)
downloadopenbsd-9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6.tar.gz
openbsd-9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6.tar.bz2
openbsd-9021d14f9c0c87cbe273ab6f4fe8e4f48363f4f6.zip
remove a couple hundred sys/param.h includes in userland code, and
also whack some sys/cdefs.h early includes which is such a brutally bad pattern ok bluhm mbuhl
Diffstat (limited to 'src/regress/lib/libc/sys/macros.h')
-rw-r--r--src/regress/lib/libc/sys/macros.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/regress/lib/libc/sys/macros.h b/src/regress/lib/libc/sys/macros.h
index ee7d77c31d..cb0789eb71 100644
--- a/src/regress/lib/libc/sys/macros.h
+++ b/src/regress/lib/libc/sys/macros.h
@@ -1,7 +1,6 @@
1/* $OpenBSD: macros.h,v 1.4 2021/09/02 15:28:41 mbuhl Exp $ */ 1/* $OpenBSD: macros.h,v 1.5 2021/12/13 16:56:48 deraadt Exp $ */
2/* Public domain - Moritz Buhl */ 2/* Public domain - Moritz Buhl */
3 3
4#include <sys/param.h>
5#include <sys/socket.h> 4#include <sys/socket.h>
6#include <sys/stdint.h> 5#include <sys/stdint.h>
7#include <sys/sysctl.h> 6#include <sys/sysctl.h>
@@ -11,8 +10,7 @@
11#include <string.h> 10#include <string.h>
12#include <stdio.h> 11#include <stdio.h>
13 12
14#define __RCSID(str) 13#define nitems(_a) (sizeof((_a)) / sizeof((_a)[0]))
15#define __COPYRIGHT(str)
16 14
17#define __arraycount(_a) nitems(_a) 15#define __arraycount(_a) nitems(_a)
18#define __unreachable() atf_tc_fail("unreachable") 16#define __unreachable() atf_tc_fail("unreachable")