# HG changeset patch # User diego # Date 1163553093 0 # Node ID 6d9dd5b5e76402fffcbb05ef50aa1c9f5f57454a # Parent d68525fe36da89e51f66c062858238828bb753bb MinGW compilation fix, inet_aton and #includes depend on networking support. diff -r d68525fe36da -r 6d9dd5b5e764 os_support.c --- 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 -#include -#include -#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 +#include +#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) */