diff options
Diffstat (limited to 'ext/socket/sockport.h')
-rw-r--r-- | ext/socket/sockport.h | 4 |
1 files changed, 3 insertions, 1 deletions
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 |