summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2019-10-17 16:03:42 -0400
committerRich Felker <dalias@aerifal.cx>2019-10-17 16:03:42 -0400
commit71d23fbeacdd1f0c5e33cffb0979250d576fcf9c (patch)
treed905ec8b0ac5491043f5e46d012c5258004e2fed /include
parent97d35a552ec5b6ddf7923dd2f9a8eb973526acea (diff)
downloadmusl-71d23fbeacdd1f0c5e33cffb0979250d576fcf9c.tar.gz
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.
Diffstat (limited to 'include')
-rw-r--r--include/arpa/nameser.h1
-rw-r--r--include/netinet/icmp6.h1
-rw-r--r--include/netinet/ip.h1
-rw-r--r--include/netinet/ip6.h1
-rw-r--r--include/netinet/tcp.h1
-rw-r--r--include/sys/acct.h1
-rw-r--r--include/sys/sem.h2
-rw-r--r--include/sys/statvfs.h2
8 files changed, 0 insertions, 10 deletions
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 <stddef.h>
#include <stdint.h>
-#include <endian.h>
#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 <string.h>
#include <sys/types.h>
#include <netinet/in.h>
-#include <endian.h>
#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 <stdint.h>
#include <netinet/in.h>
-#include <endian.h>
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 <stdint.h>
#include <netinet/in.h>
-#include <endian.h>
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 <sys/types.h>
#include <sys/socket.h>
#include <stdint.h>
-#include <endian.h>
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 <features.h>
-#include <endian.h>
#include <time.h>
#include <stdint.h>
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 <endian.h>
-
#include <bits/sem.h>
#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 <bits/alltypes.h>
-#include <endian.h>
-
struct statvfs {
unsigned long f_bsize, f_frsize;
fsblkcnt_t f_blocks, f_bfree, f_bavail;