From: Jani Taskinen Date: Thu, 10 Sep 2009 13:19:43 +0000 (+0000) Subject: - Fix build for !win32 systems.. X-Git-Tag: php-5.4.0alpha1~191^2~2670 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=04e3e09f9cc4ee980175dc30a0c008d7131a653a;p=php - Fix build for !win32 systems.. --- diff --git a/ext/sockets/php_sockets.h b/ext/sockets/php_sockets.h index 8487c328c2..cef4c7d338 100644 --- a/ext/sockets/php_sockets.h +++ b/ext/sockets/php_sockets.h @@ -72,10 +72,10 @@ PHP_FUNCTION(socket_last_error); PHP_FUNCTION(socket_clear_error); #ifdef PHP_WIN32 -typedef int PHP_SOCKET; +typedef SOCKET PHP_SOCKET; # define PHP_SOCKETS_API __declspec(dllexport) #else -typedef SOCKET PHP_SOCKET; +typedef int PHP_SOCKET; # define PHP_SOCKETS_API PHPAPI #endif