diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | ext/socket/sockport.h | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Mon Mar 2 21:39:08 2009 Tanaka Akira <akr@fsij.org> + + * ext/socket/sockport.h (SS_LEN): defined unconditionally. + Mon Mar 2 21:26:42 2009 Tanaka Akira <akr@fsij.org> * ext/socket/ancdata.c (anc_inspect_socket_creds): supress warnings. diff --git a/ext/socket/sockport.h b/ext/socket/sockport.h index 6d3344ecd8..5f2fd24530 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 |