Originally committed as revision 7081 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diego Biurrun authored on 2006/11/15 10:11:33... | ... |
@@ -36,10 +36,6 @@ |
36 | 36 |
#endif |
37 | 37 |
#include <time.h> |
38 | 38 |
|
39 |
-#include <stdlib.h> |
|
40 |
-#include <strings.h> |
|
41 |
-#include "barpainet.h" |
|
42 |
- |
|
43 | 39 |
/** |
44 | 40 |
* gets the current time in micro seconds. |
45 | 41 |
*/ |
... | ... |
@@ -71,7 +67,11 @@ struct tm *localtime_r(const time_t *t, struct tm *tp) |
71 | 71 |
} |
72 | 72 |
#endif /* !defined(CONFIG_WINCE) && !defined(HAVE_LOCALTIME_R) */ |
73 | 73 |
|
74 |
-#if !defined(HAVE_INET_ATON) |
|
74 |
+#if !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK) |
|
75 |
+#include <stdlib.h> |
|
76 |
+#include <strings.h> |
|
77 |
+#include "barpainet.h" |
|
78 |
+ |
|
75 | 79 |
int inet_aton (const char * str, struct in_addr * add) |
76 | 80 |
{ |
77 | 81 |
const char * pch = str; |
... | ... |
@@ -93,4 +93,4 @@ done: |
93 | 93 |
|
94 | 94 |
return 1; |
95 | 95 |
} |
96 |
-#endif /* !defined HAVE_INET_ATON */ |
|
96 |
+#endif /* !defined(HAVE_INET_ATON) && defined(CONFIG_NETWORK) */ |