[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: HOST_NAME_MAX on HP-NonStop
From: |
Bruno Haible |
Subject: |
Re: HOST_NAME_MAX on HP-NonStop |
Date: |
Thu, 23 Dec 2010 13:47:51 +0100 |
User-agent: |
KMail/1.9.9 |
Joachim Schmitz wrote:
> Problem with HOST_NAME_MAX (MAXHOSTNAMELEN is set to 64 in <arpa/nameser.h>,
> added this to gllib/unistd.in.h, but don't think it belongs there):
> char buf[HOST_NAME_MAX];
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/test-gethostname.c", line 38:
> error(163):
> incomplete type is not allowed
>
>
> if (strlen (NOHOSTNAME) >= HOST_NAME_MAX)
> ^
> "/usr/local/Floss/gnulib/testdir-posix/gltests/test-gethostname.c", line 41:
> error(123):
> expected an expression
What's going on here? If HOST_NAME_MAX is not defined in <limits.h>,
HOST_NAME_MAX ought to be defined in config.h, after the code from
m4/gethostname.m4 has been executed. A look in config.log should tell
you what went on here (check out for "checking for HOST_NAME_MAX").
Bruno
- Re: alphasort on HP-NonStop, (continued)
- 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, 2010/12/24
- RE: gethostname on HP-NonStop, Joachim Schmitz, 2010/12/25
- Re: HOST_NAME_MAX on HP-NonStop,
Bruno Haible <=
- 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
- Re: printf.o HP-NonStop, Bruno Haible, 2010/12/23
- RE: printf.o HP-NonStop, Joachim Schmitz, 2010/12/23