]> 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, 22 May 2020 10:42:29 +0000 (22:42 +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 43feffda7f188bda64b259a8daba32e879ef0d8e..732ec25bbde7a5a95670f19cd761940c4950d20c 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