From 2600973f2c565792b71e3aed62c40efb09e08c6e Mon Sep 17 00:00:00 2001 From: Robert Schiele Date: Thu, 24 Jan 2008 19:34:46 +0100 Subject: pre-POSIX.1-2001 systems do not have POSIX.1-2001 has declaration of select(2) in , but in the previous version of SUS, it was declared in (which is already included in git-compat-util.h). This introduces NO_SYS_SELECT_H macro in the Makefile to be set on older systems, to skip inclusion of that does not exist on them. We could check _POSIX_VERSION with 200112L and do this automatically, but earlier it was reported that the approach does not work well on some vintage of HP-UX. Other systems may get _POSIX_VERSION itself wrong. At least for now, this manual configuration is safer. Signed-off-by: Robert Schiele Signed-off-by: Junio C Hamano --- git-compat-util.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'git-compat-util.h') diff --git a/git-compat-util.h b/git-compat-util.h index b6ef5442b..4df90cb34 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -68,7 +68,9 @@ #include #include #include +#ifndef NO_SYS_SELECT_H #include +#endif #include #include #include -- cgit v1.2.1