Skip to content

Commit 5f8763a

Browse files
j6tgitster
authored andcommitted
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>
1 parent ebaa79f commit 5f8763a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compat/mingw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static inline int getuid()
8989
{ return 1; }
9090
static inline struct passwd *getpwnam(const char *name)
9191
{ return NULL; }
92-
static inline int fcntl(int fd, int cmd, long arg)
92+
static inline int fcntl(int fd, int cmd, ...)
9393
{
9494
if (cmd == F_GETFD || cmd == F_SETFD)
9595
return 0;

0 commit comments

Comments
 (0)