* #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:
parent
8108c9c270
commit
d885709ffb
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue