MAXHOSTNAMELEN

Tim Rice tim at multitalents.net
Sun Dec 31 10:53:24 EST 2000


ChangeLog
20001230
 - (bal) if no MAXHOSTNAMELEN is defined.  Default to 64 character defination.
   Suggested by Christian Kurz <shorty at debain.org>

This change causes compiler warnings on UnixWare 7, Solaris 7, others?
...
gcc -g -O2 -Wall -I/usr/local/include -I/usr/local/ssl/include -I. -Isrc -DETCDI
R=\"/usr/local/etc\" -DSSH_PROGRAM=\"/usr/local/bin/ssh\" -DSSH_ASKPASS_DEFAULT=
\"/usr/local/libexec/ssh-askpass\" -DHAVE_CONFIG_H -c src/bsd-arc4random.c
In file included from src/includes.h:59,
                 from src/bsd-arc4random.c:25:
/usr/include/netdb.h:302: warning: `MAXHOSTNAMELEN' redefined
src/defines.h:82: warning: this is the location of the previous definition
...

Perhaps defines.h should have
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif

-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net







More information about the openssh-unix-dev mailing list