[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gethostname on HP-NonStop
From: |
Bruno Haible |
Subject: |
Re: gethostname on HP-NonStop |
Date: |
Fri, 24 Dec 2010 16:40:53 +0100 |
User-agent: |
KMail/1.9.9 |
Joachim Schmitz wrote:
> diff -u ./gllib/unistd.in.h.orig ./gllib/unistd.in.h
> --- ./gllib/unistd.in.h.orig 2010-12-20 19:57:37.000000000 -0600
> +++ ./gllib/unistd.in.h 2010-12-23 07:57:13.000000000 -0600
> @@ -51,6 +51,14 @@
> # undef _GL_INCLUDING_WINSOCK2_H
> #endif
>
> +#ifdef __TANDEM /* HP-Nonstop has gethostname() in <netdb.h> */
> +#include <netdb.h>
> +/* and MAXHOSTNAMELEN in <arpa/namser.h> */
> +#include <arpa/nameser.h>
> +#undef HOST_NAME_MAX
> +#define HOST_NAME_MAX MAXHOSTNAMELEN
> +#endif
This goes in the right direction. HOST_NAME_MAX already being dealt with,
this is what I'm committing:
2010-12-24 Bruno Haible <address@hidden>
gethostname: Ensure declaration on NonStop Kernel.
* lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
Reported by Joachim Schmitz <address@hidden>.
--- lib/unistd.in.h.orig Fri Dec 24 16:37:08 2010
+++ lib/unistd.in.h Fri Dec 24 16:36:38 2010
@@ -88,9 +88,11 @@
# include <io.h>
#endif
-/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>. */
+/* AIX and OSF/1 5.1 declare getdomainname in <netdb.h>, not in <unistd.h>.
+ NonStop Kernel declares gethostname in <netdb.h>, not in <unistd.h>. */
/* But avoid namespace pollution on glibc systems. */
-#if @GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__) \
+#if ((@GNULIB_GETDOMAINNAME@ && (defined _AIX || defined __osf__)) \
+ || (@GNULIB_GETHOSTNAME@ && defined __TANDEM)) \
&& !defined __GLIBC__
# include <netdb.h>
#endif
- RE: alphasort on HP-NonStop, (continued)
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/23
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/24
- Re: alphasort on HP-NonStop, Bruno Haible, 2010/12/24
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/24
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/28
- Re: alphasort on HP-NonStop, Paul Eggert, 2010/12/28
- RE: alphasort on HP-NonStop, Joachim Schmitz, 2010/12/28
- Re: gethostname on HP-NonStop, Bruno Haible, 2010/12/23
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/23
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: gethostname on HP-NonStop,
Bruno Haible <=
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: HOST_NAME_MAX on HP-NonStop, Bruno Haible, 2010/12/23
- RE: HOST_NAME_MAX on HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: HOST_NAME_MAX on HP-NonStop, Bruno Haible, 2010/12/24
- RE: HOST_NAME_MAX on HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: HOST_NAME_MAX on HP-NonStop, Bruno Haible, 2010/12/25
- Re: porting stdioext to HP-NonStop, Bruno Haible, 2010/12/23
- RE: porting stdioext to HP-NonStop, Joachim Schmitz, 2010/12/23
- Re: <sys/select.h> HP-NonStop, Bruno Haible, 2010/12/24
- RE: <sys/select.h> HP-NonStop, Joachim Schmitz, 2010/12/25