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

(cherry picked from commit 041248e7cc)
This commit is contained in:
Leo
2020-09-01 11:46:17 -03:00
committed by Tomas Babej
parent 6873ff26a1
commit 57680f5bde

View File

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