From: Uwe Schindler Date: Tue, 17 Nov 2009 21:17:49 +0000 (+0000) Subject: Fix bug #50140: With default compilation option, php symbols are unresolved for nsapi X-Git-Tag: php-5.4.0alpha1~191^2~2383 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=4c60929967a6385423da661d0d7c7fda9be6e265;p=php Fix bug #50140: With default compilation option, php symbols are unresolved for nsapi --- diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 0ec84f4297..09154d60cb 100644 --- a/sapi/nsapi/nsapi.c +++ b/sapi/nsapi/nsapi.c @@ -68,6 +68,12 @@ */ #include "nsapi.h" +/* fix for gcc4 visibility issue */ +#ifndef PHP_WIN32 +# undef NSAPI_PUBLIC +# define NSAPI_PUBLIC PHPAPI +#endif + #define NSLS_D struct nsapi_request_context *request_context #define NSLS_DC , NSLS_D #define NSLS_C request_context