[Monetdb-developers] HOST_NAME_MAX op mac os 10.5

Fabian Groffen Fabian.Groffen at cwi.nl
Thu May 29 09:38:35 CEST 2008


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.




More information about the developers-list mailing list