mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 21:34:54 +03:00
Mon Nov 26 11:39:59 UTC 2007 Richard W.M. Jones <rjones@redhat.com>
* configure.in, src/internal.h, src/xml.c: <sys/syslimits.h> is needed on Cygwin to get PATH_MAX. HOST_NAME_MAX and IF_NAMESIZE defined if not in header files.
This commit is contained in:
parent
a79891f126
commit
46fdd02c75
@ -64,7 +64,7 @@ dnl Availability of various common functions (non-fatal if missing).
|
||||
AC_CHECK_FUNCS([regexec])
|
||||
|
||||
dnl Availability of various common headers (non-fatal if missing).
|
||||
AC_CHECK_HEADERS(paths.h)
|
||||
AC_CHECK_HEADERS([paths.h sys/syslimits.h])
|
||||
|
||||
dnl Specific dir for HTML output ?
|
||||
AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
|
||||
|
@ -12,6 +12,23 @@
|
||||
#include <netinet/in.h>
|
||||
#include <netinet/tcp.h>
|
||||
#include <libxml/threads.h>
|
||||
#ifdef HAVE_SYS_SYSLIMITS_H
|
||||
#include <sys/syslimits.h>
|
||||
#endif
|
||||
|
||||
/* On architectures which lack these limits, define them (ie. Cygwin).
|
||||
* Note that the libvirt code should be robust enough to handle the
|
||||
* case where actual value is longer than these limits (eg. by setting
|
||||
* length correctly in second argument to gethostname and by always
|
||||
* using strncpy instead of strcpy).
|
||||
*/
|
||||
#ifndef HOST_NAME_MAX
|
||||
#define HOST_NAME_MAX 256
|
||||
#endif
|
||||
|
||||
#ifndef IF_NAMESIZE
|
||||
#define IF_NAMESIZE 16
|
||||
#endif
|
||||
|
||||
#include "hash.h"
|
||||
#include "libvirt/libvirt.h"
|
||||
|
Loading…
Reference in New Issue
Block a user