X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=win32%2Fwin32_compat.h;h=abdf1dbe7611684b0570c7a0e53cfacce7b851d3;hb=2142af5d472ae35afca3b6b2c0da26974e8b11b3;hp=f15a606ef0a7b77c2d773d47068fc17ce41cc309;hpb=622489d36e0a2d1b15f0ed9aa92a84fae1bc54fd;p=deb_libnfs.git diff --git a/win32/win32_compat.h b/win32/win32_compat.h index f15a606..abdf1db 100644 --- a/win32/win32_compat.h +++ b/win32/win32_compat.h @@ -22,7 +22,6 @@ THE SOFTWARE. */ /*Adaptions by memphiz@xbmc.org*/ -#ifdef WIN32 #ifndef win32_COMPAT_H_ #define win32_COMPAT_H_ #define NO_IPv6 1 @@ -95,6 +94,9 @@ struct pollfd { }; #endif +#define close closesocket +#define ioctl ioctlsocket + /* Wrapper macros to call misc. functions win32 is missing */ #define poll(x, y, z) win32_poll(x, y, z) #define inet_pton(x,y,z) win32_inet_pton(x,y,z) @@ -102,5 +104,7 @@ int win32_inet_pton(int af, const char * src, void * dst); int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout); int win32_gettimeofday(struct timeval *tv, struct timezone *tz); +#define DllExport +#define HAVE_POLL_H + #endif//win32_COMPAT_H_ -#endif//WIN32