summaryrefslogtreecommitdiff
path: root/ext/socket/sockport.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-02 12:39:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-03-02 12:39:47 +0000
commit557359d170ddb9fa7db3ff5485fcf907c1970ae4 (patch)
tree747bbf9f1dc2653eef3d22cef05d921620dd341a /ext/socket/sockport.h
parent8a00868c3dc6981c300cc62020767bda5bb4b2a0 (diff)
* ext/socket/sockport.h (SS_LEN): defined unconditionally.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/sockport.h')
-rw-r--r--ext/socket/sockport.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h
index 6d3344e..5f2fd24 100644
--- a/ext/socket/sockport.h
+++ b/ext/socket/sockport.h
@@ -10,7 +10,9 @@
#ifndef SOCKPORT_H
#define SOCKPORT_H
-#ifndef SA_LEN
+#ifdef SA_LEN
+# define SS_LEN(ss) (ss)->ss_len
+#else
# ifdef HAVE_SA_LEN
# define SA_LEN(sa) (sa)->sa_len
# define SS_LEN(ss) (ss)->ss_len