summaryrefslogtreecommitdiffstats
path: root/otherlibs/unix/socket.c
diff options
context:
space:
mode:
Diffstat (limited to 'otherlibs/unix/socket.c')
-rw-r--r--otherlibs/unix/socket.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/otherlibs/unix/socket.c b/otherlibs/unix/socket.c
index a61a1a309..1723faa27 100644
--- a/otherlibs/unix/socket.c
+++ b/otherlibs/unix/socket.c
@@ -22,7 +22,14 @@
#include <sys/socket.h>
int socket_domain_table[] = {
- PF_UNIX, PF_INET
+ PF_UNIX, PF_INET,
+#if defined(HAS_IPV6)
+ PF_INET6
+#elif defined(PF_UNDEF)
+ PF_UNDEF
+#else
+ 0
+#endif
};
int socket_type_table[] = {