diff options
Diffstat (limited to 'ext/socket/addrinfo.h')
-rw-r--r-- | ext/socket/addrinfo.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h index 83cc6c6a7b..1236437897 100644 --- a/ext/socket/addrinfo.h +++ b/ext/socket/addrinfo.h @@ -65,6 +65,14 @@ #define freehostent freehostent__compat #define freeaddrinfo freeaddrinfo__compat +#ifndef __P +# ifdef HAVE_PROTOTYPES 1 +# define __P(args) args +# else +# define __P(args) +# endif +#endif + /* special compatibility hack -- end*/ |