]> granicus.if.org Git - php/commitdiff
Fix for PR #9729, 9664, 9656, 8667.
authorJason Greene <jason@php.net>
Tue, 10 Apr 2001 03:16:05 +0000 (03:16 +0000)
committerJason Greene <jason@php.net>
Tue, 10 Apr 2001 03:16:05 +0000 (03:16 +0000)
All compilers on Solaris should build this extension correctly now.
It turns out the SUN CC, by default, enables a define that enables the use of
#pragma redefine extname in sun header files. This is why cc would work,
and gcc wouldn't.

-Jason

ext/sockets/sockets.c

index 15114d86087b6f2d0f7997a1c5cdf7d712d1905c..ea784729e89168181f6ea78b588819df0bec3d72 100644 (file)
 #define _XPG4_2
 #define __EXTENSIONS__
 
+#ifndef __PRAGMA_REDEFINE_EXTNAME
+#define __PRAGMA_REDEFINE_EXTNAME
+#endif
+
 #include "ext/standard/info.h"
 #include "php_sockets.h"
 #include "php_ini.h"