[Monetdb-developers] HOST_NAME_MAX op mac os 10.5

Ying Zhang Y.Zhang at cwi.nl
Wed May 28 17:44:17 CEST 2008

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?



More information about the developers-list mailing list