diff options
author | Vincent Sanders <vince@kyllikki.org> | 2014-07-01 09:17:22 +0100 |
---|---|---|
committer | Vincent Sanders <vince@kyllikki.org> | 2014-07-01 09:17:22 +0100 |
commit | 06eb81235d975bc7721719d25ac114b4ab2c94da (patch) | |
tree | 18116d3a9e1d9016a5772aec05c793c69e291feb | |
parent | 233050353385b6917d6a5369914d1e6186701fe7 (diff) | |
download | netsurf-06eb81235d975bc7721719d25ac114b4ab2c94da.tar.gz netsurf-06eb81235d975bc7721719d25ac114b4ab2c94da.tar.bz2 |
fix fetchers include on windows
-rw-r--r-- | content/fetchers.h | 2 | ||||
-rw-r--r-- | utils/config.h | 3 |
2 files changed, 4 insertions, 1 deletions
diff --git a/content/fetchers.h b/content/fetchers.h index 3303379d2..d123de986 100644 --- a/content/fetchers.h +++ b/content/fetchers.h @@ -23,7 +23,7 @@ #ifndef _NETSURF_DESKTOP_FETCHERS_H_ #define _NETSURF_DESKTOP_FETCHERS_H_ -#include <sys/select.h> +#include "utils/config.h" #include <libwapcaplet/libwapcaplet.h> struct nsurl; diff --git a/utils/config.h b/utils/config.h index c0a3c0d1b..d44359576 100644 --- a/utils/config.h +++ b/utils/config.h @@ -58,15 +58,18 @@ char *strcasestr(const char *haystack, const char *needle); char *strchrnul(const char *s, int c); #endif +#define HAVE_SYS_SELECT #define HAVE_INETATON #if (defined(_WIN32)) #undef HAVE_INETATON +#undef HAVE_SYS_SELECT #include <winsock2.h> #define EAFNOSUPPORT WSAEAFNOSUPPORT int inet_aton(const char *cp, struct in_addr *inp); #else #include <netinet/in.h> #include <arpa/inet.h> +#include <sys/select.h> #endif #define HAVE_INETPTON |