repositories
/
deb_libnfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Make _FILE_OFFSET_BITS=64 always
[deb_libnfs.git]
/
win32
/
win32_compat.h
diff --git
a/win32/win32_compat.h
b/win32/win32_compat.h
index 2ddb0ff281a7abf8065a6f87a7019cf667753769..9972e5da6e19a06903f5279ba38b975ab7aa5239 100644
(file)
--- a/
win32/win32_compat.h
+++ b/
win32/win32_compat.h
@@
-29,6
+29,7
@@
THE SOFTWARE.
#include <winsock2.h>
#include <ws2tcpip.h>
#include <winsock2.h>
#include <ws2tcpip.h>
+#include <Ws2ipdef.h>
#include <basetsd.h>
#include <io.h>
#include <sys/stat.h>
#include <basetsd.h>
#include <io.h>
#include <sys/stat.h>
@@
-37,7
+38,6
@@
typedef int uid_t;
typedef int gid_t;
typedef int socklen_t;
typedef int gid_t;
typedef int socklen_t;
-
#define S_IRUSR 0000400
#define S_IWUSR 0000200
#define S_IXUSR 0000100
#define S_IRUSR 0000400
#define S_IWUSR 0000200
#define S_IXUSR 0000100
@@
-74,11
+74,10
@@
struct pollfd {
/* Wrapper macros to call misc. functions win32 is missing */
#define poll(x, y, z) win32_poll(x, y, z)
/* Wrapper macros to call misc. functions win32 is missing */
#define poll(x, y, z) win32_poll(x, y, z)
-#define inet_aton(x, y) win32_inet_aton(x, y)
#define inet_pton(x,y,z) win32_inet_pton(x,y,z)
#define inet_pton(x,y,z) win32_inet_pton(x,y,z)
-int win32_inet_aton(const char *, struct in_addr *);
int win32_inet_pton(int af, const char * src, void * dst);
int win32_inet_pton(int af, const char * src, void * dst);
-int win32_poll(struct pollfd *fds, int nfsd, int timeout);
+int win32_poll(struct pollfd *fds, unsigned int nfsd, int timeout);
+int win32_gettimeofday(struct timeval *tv, struct timezone *tz);
#endif//win32_COMPAT_H_
#endif//WIN32
#endif//win32_COMPAT_H_
#endif//WIN32