aboutsummaryrefslogtreecommitdiff
path: root/include/compat/netinet
diff options
context:
space:
mode:
authorJonas 'Sortie' Termansen <sortie@maxsi.org>2021-10-03 13:33:16 +0200
committerJonas 'Sortie' Termansen <sortie@maxsi.org>2021-10-03 13:33:16 +0200
commitfcf6c877881626ee2ac94fc77051c79e3f7ae7ce (patch)
tree7634390a1cac4c517bae21b9e8b212949c27bc2f /include/compat/netinet
parent691c7c7514c1f46e7d40619c4833094bd1c24571 (diff)
downloadportable-fcf6c877881626ee2ac94fc77051c79e3f7ae7ce.tar.gz
portable-fcf6c877881626ee2ac94fc77051c79e3f7ae7ce.tar.bz2
portable-fcf6c877881626ee2ac94fc77051c79e3f7ae7ce.zip
Support operating systems without some non-POSIX headers
The arpa/nameser.h, netinet/ip.h, and resolv.h headers are not crucial to building LibreSSL. The netinet/ip.h header is used in nc(1) for optional IPTOS_ features that can be ifdef'd on systems without support. The endian.h header is the upcoming standard header and should be used whenever available and correct. The machine/endian.h header is non-standard and doesn't have to exist on POSIX systems. Fix the check for getpagesize(3) not forward declaring the function, such that CFLAGS with -Werror=implicit-function-declaration doesn't cause the check to fail.
Diffstat (limited to 'include/compat/netinet')
-rw-r--r--include/compat/netinet/ip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/compat/netinet/ip.h b/include/compat/netinet/ip.h
index 6019f7d..29f17f3 100644
--- a/include/compat/netinet/ip.h
+++ b/include/compat/netinet/ip.h
@@ -8,7 +8,9 @@
8#endif 8#endif
9 9
10#ifndef _WIN32 10#ifndef _WIN32
11#ifdef HAVE_NETINET_IP_H
11#include_next <netinet/ip.h> 12#include_next <netinet/ip.h>
13#endif
12#else 14#else
13#include <win32netcompat.h> 15#include <win32netcompat.h>
14#endif 16#endif