@matheusbsbs / matheus-bagliano / commits / 5f8763a81b
Fork 0

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 <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Johannes Sixt committed Mar 6, 2010 at 16:40 UTC 5f8763a81b96b94f24af6aa728107997adcf60bd
1 file changed +1 -1
compat/mingw.h
+1 -1
@@ -89,7 +89,7 @@ static inline int getuid()
89 { return 1; }
90 static inline struct passwd *getpwnam(const char *name)
91 { return NULL; }
92 -static inline int fcntl(int fd, int cmd, long arg)
92 +static inline int fcntl(int fd, int cmd, ...)
93 {
94 if (cmd == F_GETFD || cmd == F_SETFD)
95 return 0;