diff options
author | deraadt <> | 2021-12-13 16:56:48 +0000 |
---|---|---|
committer | deraadt <> | 2021-12-13 16:56:48 +0000 |
commit | 8d21fee22ec79324eef6e9a88c83bd6cf32315d6 (patch) | |
tree | 4d79dae357e2afe076d7157a01ff32c7b7546acc /src/regress/lib/libc/sys/macros.h | |
parent | ff932a8c105e55b70f9248f6e57a9157c7969ef4 (diff) | |
download | openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.tar.gz openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.tar.bz2 openbsd-8d21fee22ec79324eef6e9a88c83bd6cf32315d6.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.h | 6 |
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") |