headers needed to compile on Solaris diff --git a/src/proxy_internal.c b/src/proxy_internal.c --- a/src/proxy_internal.c +++ b/src/proxy_internal.c @@ -18,6 +18,7 @@ #include #include #include +#include #include "internal.h" #include "driver.h" #include "proxy_internal.h" diff --git a/src/qemu_internal.c b/src/qemu_internal.c --- a/src/qemu_internal.c +++ b/src/qemu_internal.c @@ -41,7 +41,14 @@ #include #include #include +#ifdef __linux__ #include +#endif + +#ifndef _PATH_DEVNULL +#define _PATH_DEVNULL "/dev/null" +#endif + #include "internal.h" #include "qemu_internal.h" diff --git a/src/virsh.c b/src/virsh.c --- a/src/virsh.c +++ b/src/virsh.c @@ -29,6 +29,7 @@ #include #include #include +#include #include #include #include diff --git a/src/xen_unified.c b/src/xen_unified.c --- a/src/xen_unified.c +++ b/src/xen_unified.c @@ -27,6 +27,7 @@ #include #include +#include #include #include diff --git a/src/xend_internal.c b/src/xend_internal.c --- a/src/xend_internal.c +++ b/src/xend_internal.c @@ -28,6 +28,7 @@ #include #include #include +#include #include "libvirt/libvirt.h" #include "driver.h" diff --git a/src/xm_internal.c b/src/xm_internal.c --- a/src/xm_internal.c +++ b/src/xm_internal.c @@ -26,6 +26,7 @@ #include #include #include +#include #include #include @@ -35,6 +36,9 @@ #include #include +#ifndef NAME_MAX +#define NAME_MAX 255 +#endif #include "xen_unified.h" #include "xm_internal.h" diff --git a/tests/testutils.c b/tests/testutils.c --- a/tests/testutils.c +++ b/tests/testutils.c @@ -19,8 +19,15 @@ #include #include #include +#include "testutils.h" + +#ifdef __linux__ #include -#include "testutils.h" +#endif + +#ifndef _PATH_DEVNULL +#define _PATH_DEVNULL "/dev/null" +#endif #define GETTIMEOFDAY(T) gettimeofday(T, NULL) #define DIFF_MSEC(T, U) \ diff --git a/tests/virshtest.c b/tests/virshtest.c --- a/tests/virshtest.c +++ b/tests/virshtest.c @@ -2,6 +2,7 @@ #include #include #include +#include #include "xml.h" #include "testutils.h"