From a76b138daa1696129c029309b3c0d49d72ff6b19 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Tue, 24 Nov 2020 19:10:11 +0000 Subject: [PATCH] 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 Signed-off-by: Junio C Hamano --- cache.h | 1 - git-compat-util.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cache.h b/cache.h index c0072d43b1..e986cf4ea9 100644 --- a/cache.h +++ b/cache.h @@ -1960,7 +1960,6 @@ int stat_validity_check(struct stat_validity *sv, const char *path); void stat_validity_update(struct stat_validity *sv, int fd); int versioncmp(const char *s1, const char *s2); -void sleep_millisec(int millisec); /* * Create a directory and (if share is nonzero) adjust its permissions diff --git a/git-compat-util.h b/git-compat-util.h index 7a0fb7a045..d963b91b71 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -1352,4 +1352,6 @@ static inline void *container_of_or_null_offset(void *ptr, size_t offset) ((uintptr_t)&(ptr)->member - (uintptr_t)(ptr)) #endif /* !__GNUC__ */ +void sleep_millisec(int millisec); + #endif