]> git.ipfire.org Git - thirdparty/git.git/commit - Makefile
Add a no-op setitimer() wrapper
authorJoachim Schmitz <jojo@schmitz-digital.de>
Sat, 8 Sep 2012 16:54:34 +0000 (18:54 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 9 Sep 2012 03:35:19 +0000 (20:35 -0700)
commit7f9e848cf82311792ccfb286e64846fe6f3d5476
treea1136b10618acd9336dcfe4025b01ad826f1fa11
parentfab4b04e4be5ccfdf93e21e7260040bd9e7faedd
Add a no-op setitimer() wrapper

The current code uses setitimer() only for reducing perceived
latency.  On platforms that lack setitimer() (e.g. HP NonStop),
allow builders to say "make NO_SETITIMER=YesPlease" to use a no-op
substitute, as doing so would not affect correctness.

HP NonStop does provide struct itimerval, but other platforms may
not, so this is taken care of in this commit too, by setting
NO_STRUCT_ITIMERVAL.

Signed-off-by: Joachim Schmitz <jojo@schmitz-digital.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
git-compat-util.h