]> granicus.if.org Git - php/commitdiff
Add comment about thread-safety of gethostbyname on win32.
authorWez Furlong <wez@php.net>
Fri, 21 Feb 2003 14:06:55 +0000 (14:06 +0000)
committerWez Furlong <wez@php.net>
Fri, 21 Feb 2003 14:06:55 +0000 (14:06 +0000)
Set the correct path to the win32 config.h file in the .dsp file.

main/network.c
win32/php4dllts.dsp

index cf96982e6bbb02153dfd0c0818f2aa73b39c3b6d..8a7f3da006caaa0d7e63fe23e5f6e742d7e5f33c 100644 (file)
@@ -223,7 +223,9 @@ static int php_network_getaddresses(const char *host, struct sockaddr ***sal TSR
                struct in_addr in;
 
                if (!inet_aton(host, &in)) {
-                       /* XXX NOT THREAD SAFE */
+                       /* XXX NOT THREAD SAFE
+                        * (but it *is* thread safe under win32)
+                        */
                        host_info = gethostbyname(host);
                        if (host_info == NULL) {
                                php_error_docref(NULL TSRMLS_CC, E_WARNING, "php_network_getaddresses: gethostbyname failed");
index a9b193fea6a4e7bbc85d4b6c399e42c3ffda4ecc..d3bdb9cf24ab5a06a81fa1fce782a3b631f3bcb3 100644 (file)
@@ -270,7 +270,7 @@ SOURCE=..\ext\standard\aggregation.h
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\ext\standard\config.w32.h\r
+SOURCE=..\main\config.w32.h\r
 # End Source File\r
 # Begin Source File\r
 \r
@@ -1876,6 +1876,10 @@ SOURCE=..\ext\standard\php_string.h
 # End Source File\r
 # Begin Source File\r
 \r
+SOURCE=..\ext\standard\php_sunfuncs.h\r
+# End Source File\r
+# Begin Source File\r
+\r
 SOURCE=..\ext\standard\php_syslog.h\r
 # End Source File\r
 # Begin Source File\r
@@ -1900,10 +1904,6 @@ SOURCE=..\ext\standard\sha1.h
 # End Source File\r
 # Begin Source File\r
 \r
-SOURCE=..\ext\standard\php_sunfuncs.h\r
-# End Source File\r
-# Begin Source File\r
-\r
 SOURCE=..\ext\standard\type.h\r
 # End Source File\r
 # Begin Source File\r