summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 10:42:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-01 10:42:22 +0000
commit4789b3f6536ef8267c79c7cb3ee6678546c2150b (patch)
treeaf4784c10e98a747f6e681e41cfc106d98c18b98 /include
parentc80508b28be5947648f59710e6653f793a73bd76 (diff)
AF_INET -> define to AF_FAMILY, will be either AF_INET or AF_INET6
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4610 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/socket.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/socket.h b/include/socket.h
index 4387797df..01005305b 100644
--- a/include/socket.h
+++ b/include/socket.h
@@ -37,11 +37,13 @@
typedef struct sockaddr_in6 insp_sockaddr;
typedef struct in6_addr insp_inaddr;
+#define AF_FAMILY AF_INET6
#else
typedef struct sockaddr_in insp_sockaddr;
typedef struct in_addr insp_inaddr;
+#define AF_FAMILY AF_INET
#endif