summaryrefslogtreecommitdiff
path: root/src/unix
diff options
context:
space:
mode:
authorRussell Belfer <arrbee@arrbee.com>2012-02-23 11:16:47 -0800
committerRussell Belfer <arrbee@arrbee.com>2012-02-23 11:16:47 -0800
commit290f240ee006fef9d65cf987ad5e0d99e956b936 (patch)
treef0deb9aafad4793ffe4b3db3bf56c636f35ada75 /src/unix
parent1ec1de6d43e2f4dcf18ad730efbbfc20d0e4adb0 (diff)
downloadlibgit2-290f240ee006fef9d65cf987ad5e0d99e956b936.tar.gz
Fix readdir usage across platforms
This fixes the missing readdir_r from win32 and fixes other platforms to always use the reentrant readdir_r form for reading directory contents.
Diffstat (limited to 'src/unix')
-rw-r--r--src/unix/posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/unix/posix.h b/src/unix/posix.h
index 9973acf30..2b0d85bb5 100644
--- a/src/unix/posix.h
+++ b/src/unix/posix.h
@@ -21,5 +21,6 @@
#define p_snprintf(b, c, f, ...) snprintf(b, c, f, __VA_ARGS__)
#define p_mkstemp(p) mkstemp(p)
#define p_setenv(n,v,o) setenv(n,v,o)
+#define p_readdir_r(d,e,r) readdir_r(d,e,r)
#endif