29 May
2008
29 May
'08
7:38 a.m.
On 28-05-2008 17:44:17 +0200, Ying Zhang wrote:
Dear all,
I use HOST_NAME_MAX in my code. Compiling the code on a CWI machine does not have any problem, however, compilation on Mac OS 10.5 complains that HOST_NAME_MAX is not defined. fgrep on mac 10.5 says:
$fgrep -r HOST_NAME_MAX /usr/include/* /usr/include/limits.h:#define _POSIX_HOST_NAME_MAX 255 /usr/include/unistd.h:#define _SC_HOST_NAME_MAX 72
How (and where) can I add proper check to define HOST_NAME_MAX for darwin 9?
Create a configure check, or define it within guards when it's not defined.