summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
authorCarlos Martín Nieto <carlos@cmartin.tk>2011-09-23 00:00:05 +0200
committerCarlos Martín Nieto <carlos@cmartin.tk>2011-09-23 00:00:05 +0200
commitdd44887ac69f334ecf07e0a7be97c18e764539e8 (patch)
tree597841cad6a7332bfab273ff1ef3084f40f5ff72 /src/posix.h
parent01ab592b82c4051df2be6066d7dfa59696cd453d (diff)
downloadlibgit2-dd44887ac69f334ecf07e0a7be97c18e764539e8.tar.gz
Implment p_access and use it in git_fileutils_exists
Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/posix.h b/src/posix.h
index d656e8ec0..497e21fb7 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -52,6 +52,7 @@ extern char* p_getenv(const char* name);
#define p_chdir(p) chdir(p)
#define p_rmdir(p) rmdir(p)
#define p_chmod(p,m) chmod(p, m)
+#define p_access(p,m) access(p,m)
#endif