changeset 1511:6d9dd5b5e764 libavformat

MinGW compilation fix, inet_aton and #includes depend on networking support.
author diego
date Wed, 15 Nov 2006 01:11:33 +0000
parents d68525fe36da
children ac40b8da1636
files os_support.c
diffstat 1 files changed, 6 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/os_support.c	Tue Nov 14 23:53:37 2006 +0000
+++ b/os_support.c	Wed Nov 15 01:11:33 2006 +0000
@@ -36,10 +36,6 @@
 #endif
 #include <time.h>
 
-#include <stdlib.h>
-#include <strings.h>
-#include "barpainet.h"
-
 /**
  * gets the current time in micro seconds.
  */
@@ -71,7 +67,11 @@
 }
 #endif /* !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R) */
 
-#if !defined(HAVE_INET_ATON)
+#if !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK)
+#include <stdlib.h>
+#include <strings.h>
+#include "barpainet.h"
+
 int inet_aton (const char * str, struct in_addr * add)
 {
     const char * pch = str;
@@ -93,4 +93,4 @@
 
     return 1;
 }
-#endif /* !defined HAVE_INET_ATON */
+#endif /* !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK) */