diff network.h @ 1943:c0c0f19f0db6 libavformat

Some more BeOS cleanup: check for arpa/inet.h; declare the prototype for inet_aton if not found; remove barpainet.h as it's not longer needed.
author mmu_man
date Fri, 23 Mar 2007 22:01:37 +0000
parents 1f7a6dc01100
children eeea52739ff3
line wrap: on
line diff
--- a/network.h	Wed Mar 21 11:05:35 2007 +0000
+++ b/network.h	Fri Mar 23 22:01:37 2007 +0000
@@ -24,7 +24,14 @@
 #include <sys/types.h>
 #include <sys/socket.h>
 #include <netinet/in.h>
+#ifdef HAVE_ARPA_INET_H
 #include <arpa/inet.h>
+#endif
 #include <netdb.h>
 
+#if !defined(HAVE_INET_ATON)
+/* in os_support.c */
+int inet_aton (const char * str, struct in_addr * add);
 #endif
+
+#endif