summaryrefslogtreecommitdiff
path: root/ext/socket/sockport.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-13 23:20:27 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-02-13 23:20:27 +0000
commited193c50f52635923840991b8847211846a018f9 (patch)
tree9325efce45ce39f367dbb86389f649d7c5ba5aa8 /ext/socket/sockport.h
parenteb4ae6bc542cdec0ade408c2f5ddfebba227d30f (diff)
* ext/socket/extconf.rb: don't define HAVE_SA_LEN and HAVE_SA_LEN.
use HAVE_STRUCT_SOCKADDR_SA_LEN and HAVE_STRUCT_SOCKADDR_IN_SIN_LEN instead. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/socket/sockport.h')
-rw-r--r--ext/socket/sockport.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h
index 5f2fd24..5ab087d 100644
--- a/ext/socket/sockport.h
+++ b/ext/socket/sockport.h
@@ -13,7 +13,7 @@
#ifdef SA_LEN
# define SS_LEN(ss) (ss)->ss_len
#else
-# ifdef HAVE_SA_LEN
+# ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
# define SA_LEN(sa) (sa)->sa_len
# define SS_LEN(ss) (ss)->ss_len
# else
@@ -32,7 +32,7 @@
# endif
#endif
-#ifdef HAVE_SA_LEN
+#ifdef HAVE_STRUCT_SOCKADDR_SA_LEN
# define SET_SA_LEN(sa, len) (void)((sa)->sa_len = (len))
# define SET_SS_LEN(ss, len) (void)((ss)->ss_len = (len))
#else
@@ -40,7 +40,7 @@
# define SET_SS_LEN(ss, len) (void)(len)
#endif
-#ifdef HAVE_SIN_LEN
+#ifdef HAVE_STRUCT_SOCKADDR_IN_SIN_LEN
# define SIN_LEN(si) (si)->sin_len
# define SET_SIN_LEN(si,len) (si)->sin_len = (len)
#else