Git.pm: add specified name to tempfile template
[gitweb.git] / git-compat-util.h
index 59ecf218cbca417dc7d6e0a571f6c82111041225..210712728daa45de2f0c274e49ae69f43accdab4 100644 (file)
@@ -596,6 +596,11 @@ int inet_pton(int af, const char *src, void *dst);
 const char *inet_ntop(int af, const void *src, char *dst, size_t size);
 #endif
 
+#ifdef NO_PTHREADS
+#define atexit git_atexit
+extern int git_atexit(void (*handler)(void));
+#endif
+
 extern void release_pack_memory(size_t);
 
 typedef void (*try_to_free_t)(size_t);