mirror of
https://github.com/netsurf-browser/netsurf
synced 2025-03-05 14:51:47 +03:00
fix fetchers include on windows
This commit is contained in:
parent
2330503533
commit
06eb81235d
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user