]> granicus.if.org Git - php/commitdiff
Declare inet_aton properly, if the system lacks support for it.
authorSascha Schumann <sas@php.net>
Sat, 24 Feb 2001 21:14:18 +0000 (21:14 +0000)
committerSascha Schumann <sas@php.net>
Sat, 24 Feb 2001 21:14:18 +0000 (21:14 +0000)
PR: #9382

main/network.c

index 8b614e54ed00fd7ad7757a98bc0215cb86d71538..17af5e9f5c86b1250cb0d84a550355343464a44b 100644 (file)
@@ -39,7 +39,9 @@
 #if HAVE_ARPA_INET_H
 #include <arpa/inet.h>
 #endif
-#else
+#endif
+
+#ifndef HAVE_INET_ATON
 int             inet_aton(const char *, struct in_addr *);
 #endif