summaryrefslogtreecommitdiff
path: root/git-compat-util.h
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2013-06-06 12:19:06 -0700
committerJunio C Hamano <gitster@pobox.com>2013-06-06 12:19:06 -0700
commit00480a1e9ccd44f257c09c45c185c9c8825a3078 (patch)
tree092f9134bfdc05a8bb6d5c36ccb9852971087dcf /git-compat-util.h
parentd4f6b5f51ce2c974c7630b5491562a21821c8fe4 (diff)
parent2f0aaaf9dabd846061a759b53ff4759ec886df62 (diff)
downloadgit-00480a1e9ccd44f257c09c45c185c9c8825a3078.tar.gz
Merge branch 'rj/mingw-compat-st-mode-bits'
* rj/mingw-compat-st-mode-bits: path: Fix a sparse warning
Diffstat (limited to 'git-compat-util.h')
-rw-r--r--git-compat-util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/git-compat-util.h b/git-compat-util.h
index 660b7f012a..aa0404ef41 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -127,6 +127,9 @@
#else
#include <poll.h>
#endif
+
+extern int get_st_mode_bits(const char *path, int *mode);
+
#if defined(__MINGW32__)
/* pull in Windows compatibility stuff */
#include "compat/mingw.h"
@@ -163,7 +166,6 @@
typedef long intptr_t;
typedef unsigned long uintptr_t;
#endif
-int get_st_mode_bits(const char *path, int *mode);
#if defined(__CYGWIN__)
#undef _XOPEN_SOURCE
#include <grp.h>