From: Robert Schiele <hidden> Date: 2016-06-15 22:44:08
The select stuff is already in sys/time.h on on some systems like HP-UX
thus we should not include sys/select.h in that case.
Signed-off-by: Robert Schiele <redacted>
---
This patch replaces my previously sent patch
"HP-UX traditionally has no sys/select.h".
Makefile | 5 +++++
git-compat-util.h | 2 ++
2 files changed, 7 insertions(+), 0 deletions(-)
@@ -42,6 +42,8 @@ all::## Define NO_MKDTEMP if you don't have mkdtemp in the C library.#+# Define NO_SYS_SELECT_H if you don't have sys/select.h.+## Define NO_SYMLINK_HEAD if you never want .git/HEAD to be a symbolic link.# Enable it on Windows. By default, symrefs are still used.#
From: Jakub Narebski <hidden> Date: 2016-06-15 22:44:08
Some systems like HP-UX don't have sys/select.h; the select stuff
is already present in some other headef file (e.g. sys/time.h for
HP-UX).
Companion to
"some systems don't have (and need) sys/select.h"
Signed-off-by: Jakub Narebski <redacted>
---
It could be alternately just squashed together with
"some systems don't have (and need) sys/select.h" by Robert Schiele.
Robert, could you please check this patch on HP-UX? It does work
correctly on Linux (which has sys/select.h).
config.mak.in | 1 +
configure.ac | 6 ++++++
2 files changed, 7 insertions(+), 0 deletions(-)
@@ -235,6 +235,12 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket" ## Checks for header files. AC_MSG_NOTICE([CHECKS for header files]) #+# Define NO_SYS_SELECT_H if you don't have sys/select.h.+AC_CHECK_HEADER([sys/select.h],+[NO_SYS_SELECT_H=],+[NO_SYS_SELECT_H=UnfortunatelyYes])+AC_SUBST(NO_SYS_SELECT_H)+# # Define OLD_ICONV if your library has an old iconv(), where the second # (input buffer pointer) parameter is declared with type (const char **). AC_DEFUN([OLDICONVTEST_SRC], [[
@@ -235,6 +235,12 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket" ## Checks for header files. AC_MSG_NOTICE([CHECKS for header files]) #+# Define NO_SYS_SELECT_H if you don't have sys/select.h.+AC_CHECK_HEADER([sys/select.h],+[NO_SYS_SELECT_H=],+[NO_SYS_SELECT_H=UnfortunatelyYes])+AC_SUBST(NO_SYS_SELECT_H)+#
Just because I am curious: would that not define "NO_SYS_SELECT_H" in both
cases? IOW would the "ifdef NO_SYS_SELECT_H" not be triggered all the
time?
Thanks,
Dscho
@@ -235,6 +235,12 @@ test -n "$NEEDS_SOCKET" && LIBS="$LIBS -lsocket" ## Checks for header files. AC_MSG_NOTICE([CHECKS for header files]) #+# Define NO_SYS_SELECT_H if you don't have sys/select.h.+AC_CHECK_HEADER([sys/select.h],+[NO_SYS_SELECT_H=],+[NO_SYS_SELECT_H=UnfortunatelyYes])+AC_SUBST(NO_SYS_SELECT_H)+#
Just because I am curious: would that not define "NO_SYS_SELECT_H" in both
cases? IOW would the "ifdef NO_SYS_SELECT_H" not be triggered all the
time?
No, in make the empty string is equal to not being defined.
Robert
--
Robert Schiele
Dipl.-Wirtsch.informatiker mailto:rschiele@gmail.com
"Quidquid latine dictum sit, altum sonatur."