Skip to content

Commit ecfc02d

Browse files
committed
Merge branch 'jc/compat-util-setitimer-fix'
Fix a recent bug in a rarely used replacement code. * jc/compat-util-setitimer-fix: compat-util: pretend that stub setitimer() always succeeds
2 parents 263dc03 + 14639a4 commit ecfc02d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git-compat-util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ struct itimerval {
273273

274274
#ifdef NO_SETITIMER
275275
static inline int setitimer(int which, const struct itimerval *value, struct itimerval *newvalue) {
276-
; /* nothing */
276+
return 0; /* pretend success */
277277
}
278278
#endif
279279

0 commit comments

Comments
 (0)