diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-02 12:39:47 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-02 12:39:47 +0000 |
| commit | 605572a099cd199dd08668c32fae94264d34e0a1 (patch) | |
| tree | 747bbf9f1dc2653eef3d22cef05d921620dd341a /ext | |
| parent | 6bc38b32f041fc59a0481505b128ab205406a6c8 (diff) | |
| download | ruby-605572a099cd199dd08668c32fae94264d34e0a1.tar.gz ruby-605572a099cd199dd08668c32fae94264d34e0a1.tar.xz ruby-605572a099cd199dd08668c32fae94264d34e0a1.zip | |
* ext/socket/sockport.h (SS_LEN): defined unconditionally.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22712 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -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 6d3344ecd..5f2fd2453 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 |
