summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Sixt <j6t@kdbg.org>2010-03-06 15:40:40 (GMT)
committerJunio C Hamano <gitster@pobox.com>2010-03-07 08:37:35 (GMT)
commit5f8763a81b96b94f24af6aa728107997adcf60bd (patch)
treef87540d1c3877b08c81350da1d322e3cb8292aa9
parentebaa79f462c48e0ed0341d9c8f9c97de557afcfd (diff)
downloadgit-5f8763a81b96b94f24af6aa728107997adcf60bd.zip
git-5f8763a81b96b94f24af6aa728107997adcf60bd.tar.gz
git-5f8763a81b96b94f24af6aa728107997adcf60bd.tar.bz2
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>
-rw-r--r--compat/mingw.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compat/mingw.h b/compat/mingw.h
index e81e752..3347362 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;