summaryrefslogtreecommitdiff
path: root/ext/socket/sockport.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/socket/sockport.h')
-rw-r--r--ext/socket/sockport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h
index 1bd7eb698bb..a00e5ea34ae 100644
--- a/ext/socket/sockport.h
+++ b/ext/socket/sockport.h
@@ -14,7 +14,7 @@
# ifdef HAVE_SA_LEN
# define SA_LEN(sa) (sa)->sa_len
# else
-# ifdef INET6
+# ifdef AF_INET6
# define SA_LEN(sa) \
(((sa)->sa_family == AF_INET6) ? sizeof(struct sockaddr_in6) \
: sizeof(struct sockaddr))