]> granicus.if.org Git - php/commitdiff
Correct the header file ordering. From 'man 3 inet' (FreeBSD 4.5):
authorJon Parise <jon@php.net>
Thu, 7 Mar 2002 20:27:37 +0000 (20:27 +0000)
committerJon Parise <jon@php.net>
Thu, 7 Mar 2002 20:27:37 +0000 (20:27 +0000)
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>

ext/ftp/ftp.c

index cddac0825dcb9181578e0a6d8792b28576b0863b..3350e8664292be25101de2566091254755ddd608 100644 (file)
 #ifdef PHP_WIN32
 #include <winsock.h>
 #else
+#ifdef HAVE_SYS_TYPES_H
+#include <sys/types.h>
+#endif
 #include <sys/socket.h>
-#include <arpa/inet.h>
 #include <netinet/in.h>
+#include <arpa/inet.h>
 #include <netdb.h>
 #endif
 #include <errno.h>