summaryrefslogtreecommitdiff
path: root/src/win32/posix.h
diff options
context:
space:
mode:
authornulltoken <emeric.fermas@gmail.com>2012-05-06 13:04:12 +0200
committernulltoken <emeric.fermas@gmail.com>2012-05-07 12:18:54 +0200
commit3191ae89c65c1685fdae59e03e1af7d7e8edabd8 (patch)
tree9f990d404fbc3317eaf92a2aa84413ab48b1cfb2 /src/win32/posix.h
parent9b62e40ecdb92ab7493eac514e1399d791fa6f62 (diff)
downloadlibgit2-3191ae89c65c1685fdae59e03e1af7d7e8edabd8.tar.gz
compat: make p_open able to accept optional mode when passing the O_CREAT flag
This has the nice side effect of making test_attr_repo__staging_properly_normalizes_line_endings_according_to_gitattributes_directives() test pass again on Windows. This test started to fail after commit 674a198 was applied.
Diffstat (limited to 'src/win32/posix.h')
-rw-r--r--src/win32/posix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/win32/posix.h b/src/win32/posix.h
index d13d3e39b..2666fccb4 100644
--- a/src/win32/posix.h
+++ b/src/win32/posix.h
@@ -45,7 +45,7 @@ extern int p_chmod(const char* path, mode_t mode);
extern int p_rmdir(const char* path);
extern int p_access(const char* path, mode_t mode);
extern int p_fsync(int fd);
-extern int p_open(const char *path, int flags);
+extern int p_open(const char *path, int flags, ...);
extern int p_creat(const char *path, mode_t mode);
extern int p_getcwd(char *buffer_out, size_t size);
extern int p_rename(const char *from, const char *to);