mirror of https://git.musl-libc.org/git/musl
remove indirect use of endian.h from public headers
building on commit 97d35a552e
,
__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.
This commit is contained in:
parent
97d35a552e
commit
71d23fbeac
|
@ -1,5 +1,3 @@
|
|||
#include <endian.h>
|
||||
|
||||
struct msghdr {
|
||||
void *msg_name;
|
||||
socklen_t msg_namelen;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#include <endian.h>
|
||||
|
||||
struct msghdr {
|
||||
void *msg_name;
|
||||
socklen_t msg_namelen;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#include <endian.h>
|
||||
|
||||
struct msghdr {
|
||||
void *msg_name;
|
||||
socklen_t msg_namelen;
|
||||
|
|
|
@ -1,5 +1,3 @@
|
|||
#include <endian.h>
|
||||
|
||||
struct msghdr {
|
||||
void *msg_name;
|
||||
socklen_t msg_namelen;
|
||||
|
|
|
@ -7,7 +7,6 @@ extern "C" {
|
|||
|
||||
#include <stddef.h>
|
||||
#include <stdint.h>
|
||||
#include <endian.h>
|
||||
|
||||
#define __NAMESER 19991006
|
||||
#define NS_PACKETSZ 512
|
||||
|
|
|
@ -9,7 +9,6 @@ extern "C" {
|
|||
#include <string.h>
|
||||
#include <sys/types.h>
|
||||
#include <netinet/in.h>
|
||||
#include <endian.h>
|
||||
|
||||
#define ICMP6_FILTER 1
|
||||
|
||||
|
|
|
@ -7,7 +7,6 @@ extern "C" {
|
|||
|
||||
#include <stdint.h>
|
||||
#include <netinet/in.h>
|
||||
#include <endian.h>
|
||||
|
||||
struct timestamp {
|
||||
uint8_t len;
|
||||
|
|
|
@ -7,7 +7,6 @@ extern "C" {
|
|||
|
||||
#include <stdint.h>
|
||||
#include <netinet/in.h>
|
||||
#include <endian.h>
|
||||
|
||||
struct ip6_hdr {
|
||||
union {
|
||||
|
|
|
@ -97,7 +97,6 @@ enum {
|
|||
#include <sys/types.h>
|
||||
#include <sys/socket.h>
|
||||
#include <stdint.h>
|
||||
#include <endian.h>
|
||||
|
||||
typedef uint32_t tcp_seq;
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@ extern "C" {
|
|||
#endif
|
||||
|
||||
#include <features.h>
|
||||
#include <endian.h>
|
||||
#include <time.h>
|
||||
#include <stdint.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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue