libnfs.c: always pass the attributes to the callback for recursive lookups
[deb_libnfs.git] / win32 / win32_compat.h
index f15a606ef0a7b77c2d773d47068fc17ce41cc309..67e44e48fccad69b511167edf6496c13787c2a00 100644 (file)
@@ -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
@@ -33,6 +32,7 @@ THE SOFTWARE.
 #include <basetsd.h>
 #include <io.h>
 #include <sys/stat.h>
+#include <time.h>
 
 typedef int uid_t;
 typedef int gid_t;
@@ -95,6 +95,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 +105,6 @@ 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
+
 #endif//win32_COMPAT_H_
-#endif//WIN32