summaryrefslogtreecommitdiff
path: root/include/socket.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/socket.h')
-rw-r--r--include/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index 254d23f46..f9a39ded5 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -38,12 +38,14 @@
typedef struct sockaddr_in6 insp_sockaddr;
typedef struct in6_addr insp_inaddr;
#define AF_FAMILY AF_INET6
+#define PF_PROTOCOL PF_INET6
#else
typedef struct sockaddr_in insp_sockaddr;
typedef struct in_addr insp_inaddr;
#define AF_FAMILY AF_INET
+#define PF_PROTOCOL PF_INET
#endif