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.2-rc0~31^2~5 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5f8763a81b96b94f24af6aa728107997adcf60bd;p=git.git 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 --- diff --git a/compat/mingw.h b/compat/mingw.h index e81e752ed..334736263 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;