aboutsummaryrefslogtreecommitdiff
path: root/sys/i386/include
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-12 17:05:39 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-12 17:05:39 +0000
commit1c1bf5bd7c1e479a7889839b941f53e689aa2569 (patch)
tree6a4bae93e6d4b1e313e821c7f9e48ca4639b3670 /sys/i386/include
parent17554af4e8531f443fce1a58ab6d4b45d82af5f2 (diff)
downloadsrc-1c1bf5bd7c1e479a7889839b941f53e689aa2569.tar.gz
src-1c1bf5bd7c1e479a7889839b941f53e689aa2569.zip
x86: Remove silly checks for <sys/cdefs.h>.
These headers #include <sys/cdefs.h> right after checking if it has already been #included. The nested #include already existed when the check for _SYS_CDEFS_H_ was added, so the check shouldn't have been added in the first place. PR: 263102 (exp-run) Reported by: brooks Reviewed by: brooks, imp, emaste Differential Revision: https://reviews.freebsd.org/D34796
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/in_cksum.h4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/i386/include/in_cksum.h b/sys/i386/include/in_cksum.h
index 4f116b8b655c..84e369cf3c81 100644
--- a/sys/i386/include/in_cksum.h
+++ b/sys/i386/include/in_cksum.h
@@ -37,10 +37,6 @@
#ifndef _MACHINE_IN_CKSUM_H_
#define _MACHINE_IN_CKSUM_H_ 1
-#ifndef _SYS_CDEFS_H_
-#error this file needs sys/cdefs.h as a prerequisite
-#endif
-
#include <sys/cdefs.h>
#define in_cksum(m, len) in_cksum_skip(m, len, 0)