vlc_network.h: Prefer to use #ifdef instead of #if for HAVE_ macro.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 2 Feb 2008 18:37:01 +0000 (18:37 +0000)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 2 Feb 2008 18:37:01 +0000 (18:37 +0000)
include/vlc_network.h

index 4fd7d53..82ae384 100644 (file)
@@ -46,10 +46,10 @@ extern const char *net_strerror( int val );
 #   endif
 #else
 #   include <sys/socket.h>
 #   endif
 #else
 #   include <sys/socket.h>
-#   if HAVE_NETINET_IN_H
+#   ifdef HAVE_NETINET_IN_H
 #      include <netinet/in.h>
 #   endif
 #      include <netinet/in.h>
 #   endif
-#   if HAVE_ARPA_INET_H
+#   ifdef HAVE_ARPA_INET_H
 #      include <arpa/inet.h>
 #   elif defined( SYS_BEOS )
 #      include <net/netdb.h>
 #      include <arpa/inet.h>
 #   elif defined( SYS_BEOS )
 #      include <net/netdb.h>