mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06: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])
|
AC_CHECK_FUNCS([regexec])
|
||||||
|
|
||||||
dnl Availability of various common headers (non-fatal if missing).
|
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 ?
|
dnl Specific dir for HTML output ?
|
||||||
AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
|
AC_ARG_WITH(html-dir, AC_HELP_STRING([--with-html-dir=path],
|
||||||
|
@ -12,6 +12,23 @@
|
|||||||
#include <netinet/in.h>
|
#include <netinet/in.h>
|
||||||
#include <netinet/tcp.h>
|
#include <netinet/tcp.h>
|
||||||
#include <libxml/threads.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 "hash.h"
|
||||||
#include "libvirt/libvirt.h"
|
#include "libvirt/libvirt.h"
|
||||||
|
@ -8,12 +8,15 @@
|
|||||||
* Daniel Veillard <veillard@redhat.com>
|
* Daniel Veillard <veillard@redhat.com>
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "config.h"
|
||||||
|
|
||||||
#include "libvirt/libvirt.h"
|
#include "libvirt/libvirt.h"
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
#include <limits.h>
|
||||||
#ifdef WITH_XEN
|
#ifdef WITH_XEN
|
||||||
#include <xs.h>
|
#include <xs.h>
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user