summaryrefslogtreecommitdiff
path: root/src/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/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/posix.h')
-rw-r--r--src/posix.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/posix.h b/src/posix.h
index 752d5156f..d020d94ac 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -42,7 +42,7 @@ extern int p_write(git_file fd, const void *buf, size_t cnt);
#define p_close(fd) close(fd)
#define p_umask(m) umask(m)
-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);