From: Johannes Sixt Date: Sat, 6 Mar 2010 15:40:40 +0000 (+0100) Subject: Fix signature of fcntl() compatibility dummy X-Git-Tag: v1.7.5.3~13^2~7 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/5f8763a81b96b94f24af6aa728107997adcf60bd?ds=inline;hp=--cc Fix signature of fcntl() compatibility dummy Obviously, this function was never called with two arguments in Windows code sections, but this will be the case in a subsequent patch. Signed-off-by: Johannes Sixt Signed-off-by: Junio C Hamano --- 5f8763a81b96b94f24af6aa728107997adcf60bd diff --git a/compat/mingw.h b/compat/mingw.h index e81e752ed2..3347362632 100644 --- a/compat/mingw.h +++ b/compat/mingw.h @@ -89,7 +89,7 @@ static inline int getuid() { return 1; } static inline struct passwd *getpwnam(const char *name) { return NULL; } -static inline int fcntl(int fd, int cmd, long arg) +static inline int fcntl(int fd, int cmd, ...) { if (cmd == F_GETFD || cmd == F_SETFD) return 0;