about summary refs log tree commit diff
path: root/third_party/git/compat/fileno.c
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/git/compat/fileno.c')
-rw-r--r--third_party/git/compat/fileno.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/third_party/git/compat/fileno.c b/third_party/git/compat/fileno.c
new file mode 100644
index 000000000000..8e80ef335d84
--- /dev/null
+++ b/third_party/git/compat/fileno.c
@@ -0,0 +1,7 @@
+#define COMPAT_CODE_FILENO
+#include "../git-compat-util.h"
+
+int git_fileno(FILE *stream)
+{
+	return fileno(stream);
+}