Uncoditionally include errno.h instead of guessing

POSIX tells us that it is errno.h, musl fails to build with -Werror
because it redirects sys/errno.h->errno.h and uses #warning
This commit is contained in:
Leo
2020-09-01 11:46:17 -03:00
committed by Paul Beckingham
parent cf45f28cc0
commit 041248e7cc

View File

@@ -37,11 +37,7 @@
#include <string.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#if (defined OPENBSD || defined SOLARIS || defined NETBSD)
#include <errno.h>
#else
#include <sys/errno.h>
#endif
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>