From 71d23fbeacdd1f0c5e33cffb0979250d576fcf9c Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 17 Oct 2019 16:03:42 -0400 Subject: remove indirect use of endian.h from public headers building on commit 97d35a552ec5b6ddf7923dd2f9a8eb973526acea, __BYTE_ORDER is now available wherever alltypes.h is included. endian.h should not be used since, in the future, it will expose identifiers that are not in the reserved namespace for the headers which were previously using it. --- include/arpa/nameser.h | 1 - include/netinet/icmp6.h | 1 - include/netinet/ip.h | 1 - include/netinet/ip6.h | 1 - include/netinet/tcp.h | 1 - include/sys/acct.h | 1 - include/sys/sem.h | 2 -- include/sys/statvfs.h | 2 -- 8 files changed, 10 deletions(-) (limited to 'include') diff --git a/include/arpa/nameser.h b/include/arpa/nameser.h index b315e0f3..581925a4 100644 --- a/include/arpa/nameser.h +++ b/include/arpa/nameser.h @@ -7,7 +7,6 @@ extern "C" { #include #include -#include #define __NAMESER 19991006 #define NS_PACKETSZ 512 diff --git a/include/netinet/icmp6.h b/include/netinet/icmp6.h index cf951d91..01269e7d 100644 --- a/include/netinet/icmp6.h +++ b/include/netinet/icmp6.h @@ -9,7 +9,6 @@ extern "C" { #include #include #include -#include #define ICMP6_FILTER 1 diff --git a/include/netinet/ip.h b/include/netinet/ip.h index d7fa8d5e..8b6d7fef 100644 --- a/include/netinet/ip.h +++ b/include/netinet/ip.h @@ -7,7 +7,6 @@ extern "C" { #include #include -#include struct timestamp { uint8_t len; diff --git a/include/netinet/ip6.h b/include/netinet/ip6.h index a4347a53..50c626a6 100644 --- a/include/netinet/ip6.h +++ b/include/netinet/ip6.h @@ -7,7 +7,6 @@ extern "C" { #include #include -#include struct ip6_hdr { union { diff --git a/include/netinet/tcp.h b/include/netinet/tcp.h index c7a86480..adcd45e7 100644 --- a/include/netinet/tcp.h +++ b/include/netinet/tcp.h @@ -97,7 +97,6 @@ enum { #include #include #include -#include typedef uint32_t tcp_seq; diff --git a/include/sys/acct.h b/include/sys/acct.h index 9b0ba36f..fae9d050 100644 --- a/include/sys/acct.h +++ b/include/sys/acct.h @@ -6,7 +6,6 @@ extern "C" { #endif #include -#include #include #include diff --git a/include/sys/sem.h b/include/sys/sem.h index 410c8774..e6161e51 100644 --- a/include/sys/sem.h +++ b/include/sys/sem.h @@ -25,8 +25,6 @@ extern "C" { #define SETVAL 16 #define SETALL 17 -#include - #include #define _SEM_SEMUN_UNDEFINED 1 diff --git a/include/sys/statvfs.h b/include/sys/statvfs.h index ef07d684..793490b6 100644 --- a/include/sys/statvfs.h +++ b/include/sys/statvfs.h @@ -11,8 +11,6 @@ extern "C" { #define __NEED_fsfilcnt_t #include -#include - struct statvfs { unsigned long f_bsize, f_frsize; fsblkcnt_t f_blocks, f_bfree, f_bavail; -- cgit v1.2.1