]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Bug 5045: ext_edirectory_userip_acl is missing include files (#624)
authorAlex Rousskov <rousskov@measurement-factory.com>
Tue, 5 May 2020 22:24:51 +0000 (22:24 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Tue, 5 May 2020 22:24:55 +0000 (22:24 +0000)
Discovered on FreeBSD v12.1 running on amd64 with clang v8.0.1.

    error: use of undeclared identifier 'AF_INET6'
    error: member access into incomplete type 'struct sockaddr_in6'
    ...

Co-Authored-By: Pavel Timofeev <timp87@gmail.com>
src/acl/external/eDirectory_userip/ext_edirectory_userip_acl.cc

index 121784828b0ce6f61b89fa5c23466bc106e01280..a3de6ccd6c47c87bf17bea51a77eba22a4a82bae 100644 (file)
 #ifdef HAVE_NETDB_H
 #include <netdb.h>
 #endif
+#ifdef HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#ifdef HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
 
 #ifdef HELPER_INPUT_BUFFER
 #define EDUI_MAXLEN     HELPER_INPUT_BUFFER