The select stuff is already in sys/time.h on traditional HP-UX
systems thus we should not include sys/select.h there because older
releases don't have it.
---
git-compat-util.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/git-compat-util.h b/git-compat-util.h
index b6ef544..77de915 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -68,7 +68,9 @@
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
+#ifndef __hpux
#include <sys/select.h>
+#endif
#include <assert.h>
#include <regex.h>
#include <netinet/in.h>
--
1.5.2.4
Hi,
On Thu, 24 Jan 2008, Robert Schiele wrote:
The select stuff is already in sys/time.h on traditional HP-UX
systems thus we should not include sys/select.h there because older
releases don't have it.
Thank you for your patch.
quoted hunk
diff --git a/git-compat-util.h b/git-compat-util.h
index b6ef544..77de915 100644
--- a/git-compat-util.h
+++ b/git-compat-util.h
@@ -68,7 +68,9 @@
#include <sys/poll.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
+#ifndef __hpux
#include <sys/select.h>
+#endif
#include <assert.h>
#include <regex.h>
#include <netinet/in.h>
We try to avoid using constructs like this. Rather, we have a section in
the Makefile which sets things like NO_IPV6=YesPlease,
OLD_ICONV=UnfortunatelyYes, etc.
Later in the Makefile, dependent on this Makefile variable, symbols
are defined. In the source code, we check for these symbols.
It is not only a matter of being able to reuse the same symbol for another
platform/setup, it is also a nice way of documentation.
In your case, I suggest NO_SYS_SELECT_H=UnfortunatelyYes.
Thanks,
Dscho
On Thu, Jan 24, 2008 at 06:03:14PM +0000, Johannes Schindelin wrote:
We try to avoid using constructs like this. Rather, we have a section in
the Makefile which sets things like NO_IPV6=YesPlease,
OLD_ICONV=UnfortunatelyYes, etc.
Later in the Makefile, dependent on this Makefile variable, symbols
are defined. In the source code, we check for these symbols.
It is not only a matter of being able to reuse the same symbol for another
platform/setup, it is also a nice way of documentation.
In your case, I suggest NO_SYS_SELECT_H=UnfortunatelyYes.
Ok, implemented it that way now and also made HP-UX support in Makefile in a
separate patch.
Robert
--
Robert Schiele
Dipl.-Wirtsch.informatiker mailto:rschiele@gmail.com
"Quidquid latine dictum sit, altum sonatur."