diff options
| author | tomas <tomas@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-14 11:45:35 +0000 |
|---|---|---|
| committer | tomas <tomas@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-14 11:45:35 +0000 |
| commit | 8284a34173b34c0b6e5ffa9158dfceb4d286ecbc (patch) | |
| tree | 76083e7886d9a67bef3c845678f7e1af60e9a790 /src/net/dns.c | |
| parent | e792ee9cbe5191fcc81273b65bdb4ac9108435d5 (diff) | |
- port net/ na win32
- pridany inet_ntop () a inet_pton () pro win32 kvuli kompatibilite zdrojoveho kodu
git-svn-id: http://opensvn.csie.org/tuxanci_ng@128 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e
Diffstat (limited to 'src/net/dns.c')
| -rw-r--r-- | src/net/dns.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/src/net/dns.c b/src/net/dns.c index 0910a74..657bbea 100644 --- a/src/net/dns.c +++ b/src/net/dns.c @@ -1,8 +1,13 @@ -#include <sys/socket.h> -#include <netinet/in.h> -#include <arpa/inet.h> +#ifndef __WIN32__ +# include <sys/socket.h> +# include <netinet/in.h> +# include <arpa/inet.h> +# include <netdb.h> +#else +# include <windows.h> +# include <wininet.h> +#endif -#include <netdb.h> #include <string.h> #include "main.h" |