gethostname: Provide a fallback for HOST_NAME_MAX.
authorBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2010 12:54:16 +0000 (13:54 +0100)
committerBruno Haible <bruno@clisp.org>
Fri, 24 Dec 2010 12:54:16 +0000 (13:54 +0100)
commit15884890b30bc2c220e8e5c035d8009885b4810d
tree7d482744fd32fb8a28da530f2bd8403effbab420
parent30e5e539b54121f27a654721dd25fd824ab6fd07
gethostname: Provide a fallback for HOST_NAME_MAX.

* m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
nor MAXHOSTNAMELEN is found in the usual system headers, use 256
instead.
Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
ChangeLog
m4/gethostname.m4