summaryrefslogtreecommitdiff
path: root/compat/fileno.c
diff options
context:
space:
mode:
Diffstat (limited to 'compat/fileno.c')
-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..8e80ef335d
--- /dev/null
+++ b/compat/fileno.c
@@ -0,0 +1,7 @@
+#define COMPAT_CODE_FILENO
+#include "../git-compat-util.h"
+
+int git_fileno(FILE *stream)
+{
+ return fileno(stream);
+}