summaryrefslogtreecommitdiff
path: root/src/posix.h
diff options
context:
space:
mode:
authorRussell Belfer <rb@github.com>2013-06-22 20:58:32 -0700
committerRussell Belfer <rb@github.com>2013-06-22 20:58:32 -0700
commit3d3ea4dc564922a3662298a7cfc2fc8b24149901 (patch)
treefdfc6507cad967fa809d0596f9ef097c0a74c22f /src/posix.h
parent9f1b2c5cb79526f274c0c72eed56f9da0efb0321 (diff)
downloadlibgit2-3d3ea4dc564922a3662298a7cfc2fc8b24149901.tar.gz
Add O_CLOEXEC to open calls
Diffstat (limited to 'src/posix.h')
-rw-r--r--src/posix.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/posix.h b/src/posix.h
index 719c8a04c..40bcc1ab0 100644
--- a/src/posix.h
+++ b/src/posix.h
@@ -25,6 +25,9 @@
#if !defined(O_BINARY)
#define O_BINARY 0
#endif
+#if !defined(O_CLOEXEC)
+#define O_CLOEXEC 0
+#endif
typedef int git_file;