Parcourir la source

[master] include sys/socket.h for AF_INET/AF_INET6

Noticed on FreeBSD, but doing unconditionally.

We have this in other code for same reason.
Jeremy C. Reed il y a 14 ans
Parent
commit
8d5a5b95c8
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      src/lib/acl/ip_check.h

+ 1 - 0
src/lib/acl/ip_check.h

@@ -23,6 +23,7 @@
 
 
 #include <stdint.h>
 #include <stdint.h>
 #include <arpa/inet.h>
 #include <arpa/inet.h>
+#include <sys/socket.h> // for AF_INET/AF_INET6
 #include <netinet/in.h>
 #include <netinet/in.h>
 
 
 #include <acl/check.h>
 #include <acl/check.h>