PHP 4.0 Bug #9382 Updated: inet_aton prototype not used

From: Date: Sat, 24 Feb 2001 21:16:11 +0000
Subject: PHP 4.0 Bug #9382 Updated: inet_aton prototype not used
Groups: php.dev 
Request: Send a blank email to php-dev+get-47420@lists.php.net to get a copy of this message
ID: 9382 Updated by: sas Reported By: amra@us.ibm.com Old-Status: Open Status: Closed Bug Type: Compile Failure Assigned To: Comments: Thanks, fixed in CVS. Previous Comments: --------------------------------------------------------------------------- [2001-02-21 15:19:43] amra@us.ibm.com OS/400 does not support inet_aton, and thus an error occurs when trying to compile main/network.c. I did notice that ext/standard/flock_compat.c has an implementation of inet_aton. And that main/network.c does include the prototype as follows: #ifndef PHP_WIN32 #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> #else int inet_aton(const char *, struct in_addr *); #endif All I ask is to change the above to the following: #ifndef PHP_WIN32 #include <netinet/in.h> #include <netdb.h> #include <arpa/inet.h> #endif #ifndef HAVE_INET_ATON int inet_aton(const char *, struct in_addr *); #endif --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=9382&edit=2

« previous php.dev (#47420) next »