remove indirect use of endian.h from public headers
authorRich Felker <dalias@aerifal.cx>
Thu, 17 Oct 2019 20:03:42 +0000 (16:03 -0400)
committerRich Felker <dalias@aerifal.cx>
Thu, 17 Oct 2019 20:03:42 +0000 (16:03 -0400)
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.

12 files changed:
arch/aarch64/bits/socket.h
arch/mips64/bits/socket.h
arch/powerpc64/bits/socket.h
arch/riscv64/bits/socket.h
include/arpa/nameser.h
include/netinet/icmp6.h
include/netinet/ip.h
include/netinet/ip6.h
include/netinet/tcp.h
include/sys/acct.h
include/sys/sem.h
include/sys/statvfs.h

index c11677e9d0d2c212bdad66ebc82332162eef1592..55337c8be479f127f428ca40c4d9fc1245071f40 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 struct msghdr {
        void *msg_name;
        socklen_t msg_namelen;
index 5aff0d91c29c02bb33104fb1458e93d97a1addb3..aafb209c2c1080e57081080055d4aa02610695dc 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 struct msghdr {
        void *msg_name;
        socklen_t msg_namelen;
index 0f3c9aac90fb24d280c7a9416b3c28b13c825536..dae4730222e9e22c130df9e8e8aa9e7d7cd28ecd 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 struct msghdr {
        void *msg_name;
        socklen_t msg_namelen;
index aae537d3434e76af0a0f56ea98cd1795e85ad30b..e2fd64cfaaf9db19349c01630bd648c43019684d 100644 (file)
@@ -1,5 +1,3 @@
-#include <endian.h>
-
 struct msghdr {
        void *msg_name;
        socklen_t msg_namelen;
index b315e0f357007cbc0e467cf58574e043c7e06223..581925a43367ae19bfa9cff25bcc022b098f37b6 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 #include <stddef.h>
 #include <stdint.h>
-#include <endian.h>
 
 #define __NAMESER      19991006
 #define NS_PACKETSZ    512
index cf951d9133439d2efc11007c70f9b692d4bb1bab..01269e7d4adc44e3f301fe48310066dba5fca478 100644 (file)
@@ -9,7 +9,6 @@ extern "C" {
 #include <string.h>
 #include <sys/types.h>
 #include <netinet/in.h>
-#include <endian.h>
 
 #define ICMP6_FILTER 1
 
index d7fa8d5e4e9b228d0542c3607c29a43589566f6b..8b6d7fefe6d225dd6ffd5fa2fa41f0640c1a2d86 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 #include <stdint.h>
 #include <netinet/in.h>
-#include <endian.h>
 
 struct timestamp {
        uint8_t len;
index a4347a53fd7dd364a6c2c3b71ee053128ead1412..50c626a69c646639cf7313ef138bc38c3e82e999 100644 (file)
@@ -7,7 +7,6 @@ extern "C" {
 
 #include <stdint.h>
 #include <netinet/in.h>
-#include <endian.h>
 
 struct ip6_hdr {
        union {
index c7a86480d301a3dc864994ef2d75bd276bdff007..adcd45e7f2e3a8e3fe91a2cab6aa53749fd64a7d 100644 (file)
@@ -97,7 +97,6 @@ enum {
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <stdint.h>
-#include <endian.h>
 
 typedef uint32_t tcp_seq;
 
index 9b0ba36fbe93a56a49e678386495406f0218674b..fae9d0508f9c839d149ed80cba9f89e12013c7c7 100644 (file)
@@ -6,7 +6,6 @@ extern "C" {
 #endif
 
 #include <features.h>
-#include <endian.h>
 #include <time.h>
 #include <stdint.h>
 
index 410c877446b929b6b1c4f0eaaccfe71a7c0a036e..e6161e51d15b217a9edf379a92259d9c3767f4a5 100644 (file)
@@ -25,8 +25,6 @@ extern "C" {
 #define SETVAL         16
 #define SETALL         17
 
-#include <endian.h>
-
 #include <bits/sem.h>
 
 #define _SEM_SEMUN_UNDEFINED 1
index ef07d6846a120513f60e6a1ac88092f2a07de0bb..793490b6dc8c171f00809bbf0412bb48e7e220fa 100644 (file)
@@ -11,8 +11,6 @@ extern "C" {
 #define __NEED_fsfilcnt_t
 #include <bits/alltypes.h>
 
-#include <endian.h>
-
 struct statvfs {
        unsigned long f_bsize, f_frsize;
        fsblkcnt_t f_blocks, f_bfree, f_bavail;