Skip to content

Commit

Permalink
Merge pull request #1056 from Geertiebear/fix_endian_include
Browse files Browse the repository at this point in the history
options/posix: only include endian.h when glibc option is enabled
  • Loading branch information
Geertiebear authored Apr 15, 2024
2 parents f15d58a + 9ce27cb commit f666985
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion options/posix/include/netinet/in.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,15 @@
#define _NETINET_IN_H

#include <stdint.h>
#include <endian.h>
#include <sys/socket.h> // struct sockaddr
#include <abi-bits/socket.h>
#include <abi-bits/in.h>
#include <arpa/inet.h>
#include <mlibc-config.h>

#if __MLIBC_GLIBC_OPTION
#include <endian.h>
#endif //__MLIBC_GLIBC_OPTION

#ifdef __cplusplus
extern "C" {
Expand Down

0 comments on commit f666985

Please sign in to comment.