Bug #66381 [Opn->Csd]: __ss_family was changed on AIX 5.3

From: Date: Wed, 01 Jan 2014 11:55:23 +0000
Subject: Bug #66381 [Opn->Csd]: __ss_family was changed on AIX 5.3
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183529@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66381&edit=1 ID: 66381 Updated by: felipe@php.net Reported by: kaplan@php.net Summary: __ss_family was changed on AIX 5.3 -Status: Open +Status: Closed Type: Bug Package: Sockets related Operating System: AIX PHP Version: 5.5.7 Block user comment: N Private report: N New Comment: Automatic comment on behalf of felipensp@gmail.com Revision: http://git.php.net/?p=php-src.git;a=commit;h=5967fb194f435aa888fd75c31cfb74ffce14ffd3 Log: - Fixed bug #66381 (__ss_family was changed on AIX 5.3) Previous Comments: ------------------------------------------------------------------------ [2014-01-01 11:26:29] kaplan@php.net Description: ------------ Commit 5e51c851431189677aa80f7a3a863699488678cd brought back a build problem for sockets on AIX older than 5.3 (similar to bug #62025). php-5.5.7/ext/sockets/sockaddr_conv.c: In function `php_set_inet46_addr': php-5.5.7/ext/sockets/sockaddr_conv.c:115: error: structure has no member named `ss_family' php-5.5.7/ext/sockets/sockaddr_conv.c:125: error: structure has no member named `ss_family' A similar patch can be applied: --- a/ext/sockets/sockaddr_conv.c +++ b/ext/sockets/sockaddr_conv.c @@ -1,6 +1,9 @@ #include <php.h> #include <php_network.h> #include "php_sockets.h" +#if defined(_AIX) && !defined(HAVE_SA_SS_FAMILY) +#define ss_family __ss_family +#endif #ifdef PHP_WIN32 #include "windows_common.h" But we might want to have this code somewhere common (php_sockets.h ?) with sockets.c to prevent duplicates with the fix for bug #62025. ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66381&edit=1

« previous php.bugs (#183529) next »