aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDiego Biurrun <diego@biurrun.de>2006-11-15 01:11:33 +0000
committerDiego Biurrun <diego@biurrun.de>2006-11-15 01:11:33 +0000
commiteaa53b957b6076ee7f598274a1498d8c7ca7130e (patch)
tree9879e73d6bae5b5fde97a5512dc4db8c1b57f31c
parentbedb3550980c674f38f40937250f5dcd58e2b0fc (diff)
downloadffmpeg-eaa53b957b6076ee7f598274a1498d8c7ca7130e.tar.gz
MinGW compilation fix, inet_aton and #includes depend on networking support.
Originally committed as revision 7081 to svn://svn.ffmpeg.org/ffmpeg/trunk
-rw-r--r--libavformat/os_support.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libavformat/os_support.c b/libavformat/os_support.c
index fc043c1411..a66c867f08 100644
--- a/libavformat/os_support.c
+++ b/libavformat/os_support.c
@@ -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 @@ struct tm *localtime_r(const time_t *t, struct tm *tp)
}
#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 @@ done:
return 1;
}
-#endif /* !defined HAVE_INET_ATON */
+#endif /* !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK) */