]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
internal/sockets.h: Ensure errno.h included when necessary
authorHugo Landau <hlandau@openssl.org>
Thu, 17 Nov 2022 14:19:42 +0000 (14:19 +0000)
committerHugo Landau <hlandau@openssl.org>
Fri, 13 Jan 2023 13:20:12 +0000 (13:20 +0000)
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19703)

include/internal/sockets.h

index dcb4c8c3f440c41018dcdbee81c7d614648dc05f..f5d5cbc2e55efe2baef004d30d331386df26c2f4 100644 (file)
@@ -113,6 +113,11 @@ struct servent *PASCAL getservbyname(const char *, const char *);
 #   include <sys/select.h>
 #  endif
 
+#  ifdef OPENSSL_SYS_UNIX
+#    include <sys/poll.h>
+#    include <errno.h>
+#  endif
+
 #  ifndef VMS
 #   include <sys/ioctl.h>
 #  else