* #include <netdb.h> if available, so that Solaris has MAXHOSTNAMELEN.

git-svn-id: svn://svn.zoy.org/elk/trunk@167 55e467fa-43c5-0310-a8a2-de718669efc6
This commit is contained in:
sam 2003-09-19 11:47:51 +00:00
parent 8108c9c270
commit d885709ffb
2 changed files with 4 additions and 1 deletions

View File

@ -383,7 +383,7 @@ AC_DEFINE(ANSI_CPP, 1, [FIXME HARD])
# The UNIX extension likes to know which of the following system calls,
# library functions, and include files are supported by the system.
AC_CHECK_HEADERS(utime.h sys/utime.h sys/wait.h dirent.h)
AC_CHECK_HEADERS(utime.h sys/utime.h sys/wait.h dirent.h netdb.h)
AC_CHECK_FUNCS(waitpid wait3 wait4 vfork uname gethostname gettimeofday ftime)
AC_CHECK_FUNCS(mktemp tmpnam tempnam getcwd getwd rename regcomp)

View File

@ -35,6 +35,9 @@
#if defined(HAVE_UNAME) && !defined(HAVE_GETHOSTNAME)
# include <sys/utsname.h>
#endif
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif
#define L_LINK_MAX 0
#define L_NAME_MAX 1