Re: [PATCH 4/9] autoconf: Check for timer_t

2014-08-29 Thread Jonas 'Sortie' Termansen
For the record, this commit doesn't contain my errata for OS X: ifeq ($(uname_S),Darwin) ... HAVE_DEV_TTY = YesPlease + NO_TIMER_T = UnfortunatelyYes COMPAT_OBJS += compat/precompose_utf8.o ... endif -- To unsubscribe from this list: send the line unsubscribe git in the body

Re: [PATCH 2/9] autoconf: Check for timer_t

2014-08-28 Thread Jonas 'Sortie' Termansen
It would appear that Darwin does not have timer_t, at least from looking at the public libc and XNU headers online. A quick additional change is needed in config.mak.uname: ifeq ($(uname_S),Darwin) ... HAVE_DEV_TTY = YesPlease + NO_TIMER_T = UnfortunatelyYes COMPAT_OBJS +=

[PATCH 2/9] autoconf: Check for timer_t

2014-08-27 Thread Jonas 'Sortie' Termansen
This type will be used in a following commit. This type was not previously used by git. This can cause trouble for people on systems without timer_t if they only rely on config.mak.uname. They will need to set NO_TIMER_T manually. Signed-off-by: Jonas 'Sortie' Termansen sor...@maxsi.org

[PATCH 4/9] autoconf: Check for struct sigevent

2014-08-27 Thread Jonas 'Sortie' Termansen
This type will be used in a following commit. This type was not previously used by git. This can cause trouble for people on systems without struct sigevent if they only rely on config.mak.uname. They will need to set NO_STRUCT_SIGEVENT manually. Signed-off-by: Jonas 'Sortie' Termansen sor

[PATCH 3/9] autoconf: Check for struct timespec

2014-08-27 Thread Jonas 'Sortie' Termansen
This type will be used in a following commit. This type was not previously used by git. This can cause trouble for people on systems without struct timespec if they only rely on config.mak.uname. They will need to set NO_STRUCT_TIMESPEC manually. Signed-off-by: Jonas 'Sortie' Termansen sor

[PATCH 1/9] git-compat-util.h: Add missing semicolon after struct itimerval

2014-08-27 Thread Jonas 'Sortie' Termansen
repair this case so we can rely on it in the following commits. Signed-off-by: Jonas 'Sortie' Termansen sor...@maxsi.org --- git-compat-util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-compat-util.h b/git-compat-util.h index f587749..f7fae20 100644 --- a/git-compat

[PATCH 0/9] Use timer_settime for new platforms

2014-08-27 Thread Jonas 'Sortie' Termansen
other systems available, you can help me by telling me if they need some NO_FOO love in config.mak.uname as well. :-) Jonas 'Sortie' Termansen -- To unsubscribe from this list: send the line unsubscribe git in the body of a message to majord...@vger.kernel.org More majordomo info at http

[PATCH 9/9] Use timer_settime for new platforms

2014-08-27 Thread Jonas 'Sortie' Termansen
with ENOSYS at runtime. This approach allows the code using timer_settime() and setitimer() to be simple and readable. My first attempt used #ifdef around each use of timer_settime(), this quickly turned a into unmaintainable maze of preprocessor conditionals. Signed-off-by: Jonas 'Sortie' Termansen sor

[PATCH 6/9] autoconf: Check for struct itimerspec

2014-08-27 Thread Jonas 'Sortie' Termansen
This type will be used in a following commit. This type was not previously used by git. This can cause trouble for people on systems without struct itimerspec if they only rely on config.mak.uname. They will need to set NO_STRUCT_ITIMERSPEC manually. Signed-off-by: Jonas 'Sortie' Termansen sor

[PATCH 5/9] autoconf: Check for struct itimerval

2014-08-27 Thread Jonas 'Sortie' Termansen
The makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen sor...@maxsi.org --- configure.ac | 7 +++ 1 file changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index 31b3218..00842ae 100644

[PATCH 7/9] autoconf: Check for setitimer

2014-08-27 Thread Jonas 'Sortie' Termansen
The makefile has provisions for this case, so let's detect it in the configure script as well. Signed-off-by: Jonas 'Sortie' Termansen sor...@maxsi.org --- configure.ac | 6 ++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 3c64251..89eb48f 100644

[PATCH 8/9] autoconf: Check for timer_settime

2014-08-27 Thread Jonas 'Sortie' Termansen
. This will be useful in a following commit. Signed-off-by: Jonas 'Sortie' Termansen sor...@maxsi.org --- This patch can be improved by finding out which systems doesn't have timer_settime and adding entries for them to config.mak.uname. Makefile | 21 + config.mak.uname | 3