[Ffmpeg-cvslog] r7081 - trunk/libavformat/os_support.c
diego
subversion
Wed Nov 15 02:11:33 CET 2006
Author: diego
Date: Wed Nov 15 02:11:33 2006
New Revision: 7081
Modified:
trunk/libavformat/os_support.c
Log:
MinGW compilation fix, inet_aton and #includes depend on networking support.
Modified: trunk/libavformat/os_support.c
==============================================================================
--- trunk/libavformat/os_support.c (original)
+++ trunk/libavformat/os_support.c Wed Nov 15 02:11:33 2006
@@ -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) */
More information about the ffmpeg-cvslog
mailing list