summaryrefslogtreecommitdiff
path: root/src/mingw-compat.h
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2011-06-18 13:23:19 +0200
committerVicent Marti <tanoku@gmail.com>2011-06-18 13:23:19 +0200
commite35e9fb4c38d30cce0c2ffe5127c6ecbb5406002 (patch)
tree6ac8c67c64f3d729d33bf3705bbda60d09f7ba60 /src/mingw-compat.h
parent2a406ab51c33059f49a5a9105be07b3a1f8210f4 (diff)
downloadlibgit2-e35e9fb4c38d30cce0c2ffe5127c6ecbb5406002.tar.gz
mingw: Fix compilation
Diffstat (limited to 'src/mingw-compat.h')
-rw-r--r--src/mingw-compat.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mingw-compat.h b/src/mingw-compat.h
index b7919c2e8..64d780b16 100644
--- a/src/mingw-compat.h
+++ b/src/mingw-compat.h
@@ -8,6 +8,11 @@
# define stat _stati64
# define fstat _fstati64
+/* stat: file mode type testing macros */
+# define _S_IFLNK 0120000
+# define S_IFLNK _S_IFLNK
+# define S_ISLNK(m) (((m) & _S_IFMT) == _S_IFLNK)
+
#endif
#endif /* INCLUDE_mingw_compat__ */