From: Rich Felker Date: Thu, 17 Oct 2019 20:03:42 +0000 (-0400) Subject: remove indirect use of endian.h from public headers X-Git-Tag: v1.2.0~98 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=71d23fbeacdd1f0c5e33cffb0979250d576fcf9c;p=oweals%2Fmusl.git 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. --- diff --git a/arch/aarch64/bits/socket.h b/arch/aarch64/bits/socket.h index c11677e9..55337c8b 100644 --- a/arch/aarch64/bits/socket.h +++ b/arch/aarch64/bits/socket.h @@ -1,5 +1,3 @@ -#include - struct msghdr { void *msg_name; socklen_t msg_namelen; diff --git a/arch/mips64/bits/socket.h b/arch/mips64/bits/socket.h index 5aff0d91..aafb209c 100644 --- a/arch/mips64/bits/socket.h +++ b/arch/mips64/bits/socket.h @@ -1,5 +1,3 @@ -#include - struct msghdr { void *msg_name; socklen_t msg_namelen; diff --git a/arch/powerpc64/bits/socket.h b/arch/powerpc64/bits/socket.h index 0f3c9aac..dae47302 100644 --- a/arch/powerpc64/bits/socket.h +++ b/arch/powerpc64/bits/socket.h @@ -1,5 +1,3 @@ -#include - struct msghdr { void *msg_name; socklen_t msg_namelen; diff --git a/arch/riscv64/bits/socket.h b/arch/riscv64/bits/socket.h index aae537d3..e2fd64cf 100644 --- a/arch/riscv64/bits/socket.h +++ b/arch/riscv64/bits/socket.h @@ -1,5 +1,3 @@ -#include - struct msghdr { void *msg_name; socklen_t msg_namelen; 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;