Skip to content

Commit 00480a1

Browse files
committed
Merge branch 'rj/mingw-compat-st-mode-bits'
* rj/mingw-compat-st-mode-bits: path: Fix a sparse warning
2 parents d4f6b5f + 2f0aaaf commit 00480a1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

git-compat-util.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@
127127
#else
128128
#include <poll.h>
129129
#endif
130+
131+
extern int get_st_mode_bits(const char *path, int *mode);
132+
130133
#if defined(__MINGW32__)
131134
/* pull in Windows compatibility stuff */
132135
#include "compat/mingw.h"
@@ -163,7 +166,6 @@
163166
typedef long intptr_t;
164167
typedef unsigned long uintptr_t;
165168
#endif
166-
int get_st_mode_bits(const char *path, int *mode);
167169
#if defined(__CYGWIN__)
168170
#undef _XOPEN_SOURCE
169171
#include <grp.h>

0 commit comments

Comments
 (0)