From 44ef8b1b300f0cd3d8572fa1b40d257462f28240 Mon Sep 17 00:00:00 2001 From: Russell Belfer Date: Fri, 13 Apr 2012 13:00:10 -0700 Subject: Fix warnings on 64-bit windows builds This fixes all the warnings on win64 except those in deps, which come from the regex code. --- src/posix.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/posix.h') diff --git a/src/posix.h b/src/posix.h index fb17cba6c..752d5156f 100644 --- a/src/posix.h +++ b/src/posix.h @@ -54,6 +54,14 @@ extern int p_rename(const char *from, const char *to); #define p_rmdir(p) rmdir(p) #define p_chmod(p,m) chmod(p, m) #define p_access(p,m) access(p,m) +#define p_recv(s,b,l,f) recv(s,b,l,f) +#define p_send(s,b,l,f) send(s,b,l,f) +typedef int GIT_SOCKET; +#define INVALID_SOCKET -1 + +#else + +typedef SOCKET GIT_SOCKET; #endif -- cgit v1.2.1