X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=git-compat-util.h;h=104993b97550c8df8f3834929e945dee43af2742;hb=1b5b8cf072491e0a43e668c685b782efce9a6f0f;hp=adfea068970a2f62a66293c0b1de45bad05b5114;hpb=c042c455d4ffb9b5ed0c280301b5661f3efad572;p=thirdparty%2Fgit.git diff --git a/git-compat-util.h b/git-compat-util.h index adfea06897..104993b975 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -273,7 +273,7 @@ struct itimerval { #ifdef NO_SETITIMER static inline int setitimer(int which, const struct itimerval *value, struct itimerval *newvalue) { - ; /* nothing */ + return 0; /* pretend success */ } #endif @@ -1354,4 +1354,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