git-compat-util: add fallbacks for unlocked stdio
[gitweb.git] / git-compat-util.h
index bc8fc8cf854e96badfdf4d96673d33b799207ff3..685a0a4063edd2a6700533df7faa2a910df60bb3 100644 (file)
@@ -883,4 +883,10 @@ struct tm *git_gmtime_r(const time_t *, struct tm *);
 # define SHELL_PATH "/bin/sh"
 #endif
 
+#ifndef _POSIX_THREAD_SAFE_FUNCTIONS
+#define flockfile(fh)
+#define funlockfile(fh)
+#define getc_unlocked(fh) getc(fh)
+#endif
+
 #endif