move sleep_millisec to git-compat-util.h
The sleep function is defined in wrapper.c, so it makes more sense to be a in system compatibility header. Signed-off-by: Han-Wen Nienhuys <hanwen@google.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Han-Wen Nienhuys committed
Nov 24, 2020 at 19:10 UTC
a76b138daa1696129c029309b3c0d49d72ff6b19
2 files changed
+2
-1
cache.h
-1
@@ -1960,7 +1960,6 @@ int stat_validity_check(struct stat_validity *sv, const char *path);
1960
void stat_validity_update(struct stat_validity *sv, int fd);
1961
1962
int versioncmp(const char *s1, const char *s2);
1963
-void sleep_millisec(int millisec);
1963
1964
/*
1965
* Create a directory and (if share is nonzero) adjust its permissions
git-compat-util.h
+2
@@ -1352,4 +1352,6 @@ static inline void *container_of_or_null_offset(void *ptr, size_t offset)
1352
((uintptr_t)&(ptr)->member - (uintptr_t)(ptr))
1353
#endif /* !__GNUC__ */
1354
1355
+void sleep_millisec(int millisec);
1356
+
1357
#endif