summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelipe Pena <felipensp@gmail.com>2014-01-01 09:55:14 -0200
committerFelipe Pena <felipensp@gmail.com>2014-01-01 09:55:14 -0200
commit5967fb194f435aa888fd75c31cfb74ffce14ffd3 (patch)
treef7a74f75835cef467d9fe4acbcb98bcf9dbfede1
parent3f7a145b5abd66d1c77e65060d15702db4d36529 (diff)
downloadphp-git-5967fb194f435aa888fd75c31cfb74ffce14ffd3.tar.gz
- Fixed bug #66381 (__ss_family was changed on AIX 5.3)
-rw-r--r--ext/sockets/php_sockets.h4
-rw-r--r--ext/sockets/sockets.c3
2 files changed, 4 insertions, 3 deletions
diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h
index 17abf95a19..d4830199bc 100644
--- a/ext/sockets/php_sockets.h
+++ b/ext/sockets/php_sockets.h
@@ -109,6 +109,10 @@ php_socket *socket_import_file_descriptor(PHP_SOCKET sock TSRMLS_DC);
#define phpext_sockets_ptr NULL
#endif
+#if defined(_AIX) && !defined(HAVE_SA_SS_FAMILY)
+# define ss_family __ss_family
+#endif
+
#endif
/*
diff --git a/ext/sockets/sockets.c b/ext/sockets/sockets.c
index 4a2a41b5fd..eef1d428ff 100644
--- a/ext/sockets/sockets.c
+++ b/ext/sockets/sockets.c
@@ -56,9 +56,6 @@
# define IS_INVALID_SOCKET(a) (a->bsd_socket < 0)
# define set_errno(a) (errno = a)
# include "php_sockets.h"
-# if defined(_AIX) && !defined(HAVE_SA_SS_FAMILY)
-# define ss_family __ss_family
-# endif
# if HAVE_IF_NAMETOINDEX
# include <net/if.h>
# endif