summaryrefslogtreecommitdiff
path: root/compat
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2019-02-13 18:18:41 -0800
committerLibravatar Junio C Hamano <gitster@pobox.com>2019-02-13 18:18:41 -0800
commit1db999ce8d369dbf20532f1b2ea8cbbcf6f2cc7b (patch)
tree2594969e363819ef50ad96ad999f352f35ea2a91 /compat
parentMerge branch 'nd/get-oid-with-context-returns-an-enum' (diff)
parentgit-compat-util: work around fileno(fp) that is a macro (diff)
downloadtgif-1db999ce8d369dbf20532f1b2ea8cbbcf6f2cc7b.tar.xz
Merge branch 'nd/fileno-may-be-macro'
* nd/fileno-may-be-macro: git-compat-util: work around fileno(fp) that is a macro
Diffstat (limited to 'compat')
-rw-r--r--compat/fileno.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/compat/fileno.c b/compat/fileno.c
new file mode 100644
index 0000000000..7b105f4cd7
--- /dev/null
+++ b/compat/fileno.c
@@ -0,0 +1,7 @@
+#define COMPAT_CODE
+#include "../git-compat-util.h"
+
+int git_fileno(FILE *stream)
+{
+ return fileno(stream);
+}