Browse 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 14 years ago
parent
commit
8d5a5b95c8
1 changed files with 1 additions and 0 deletions
  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 <arpa/inet.h>
+#include <sys/socket.h> // for AF_INET/AF_INET6
 #include <netinet/in.h>
 
 #include <acl/check.h>