]> 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)
committerAmos Jeffries <yadij@users.noreply.github.com>
Fri, 29 May 2020 18:38:59 +0000 (06:38 +1200)
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 8a4e2e701a9abf4ca7e17c7e9b95ce1d33459d00..4d582a3741c53aa4d394d3bfa92a20cca4267e04 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