ia64/xen-unstable

changeset 17461:6235c85a145f

tools: Build fixes for *BSD.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Apr 15 16:07:30 2008 +0100 (2008-04-15)
parents 24f23a89f86c
children a00355b306bd
files tools/ioemu/osdep.c tools/ioemu/tapdisk-ioemu.c tools/libxc/xg_private.c
line diff
     1.1 --- a/tools/ioemu/osdep.c	Tue Apr 15 16:04:30 2008 +0100
     1.2 +++ b/tools/ioemu/osdep.c	Tue Apr 15 16:07:30 2008 +0100
     1.3 @@ -21,6 +21,8 @@
     1.4   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
     1.5   * THE SOFTWARE.
     1.6   */
     1.7 +
     1.8 +#include "config-host.h"
     1.9  #include <stdlib.h>
    1.10  #include <stdio.h>
    1.11  #include <stdarg.h>
     2.1 --- a/tools/ioemu/tapdisk-ioemu.c	Tue Apr 15 16:04:30 2008 +0100
     2.2 +++ b/tools/ioemu/tapdisk-ioemu.c	Tue Apr 15 16:07:30 2008 +0100
     2.3 @@ -4,6 +4,7 @@
     2.4  #include <string.h>
     2.5  #include <stdint.h>
     2.6  #include <signal.h>
     2.7 +#include <sys/time.h>
     2.8  
     2.9  #include <assert.h>
    2.10  
     3.1 --- a/tools/libxc/xg_private.c	Tue Apr 15 16:04:30 2008 +0100
     3.2 +++ b/tools/libxc/xg_private.c	Tue Apr 15 16:07:30 2008 +0100
     3.3 @@ -8,7 +8,6 @@
     3.4  #include <unistd.h>
     3.5  #include <zlib.h>
     3.6  #include <strings.h>
     3.7 -#include <stdlib.h>
     3.8  #include <malloc.h>
     3.9  
    3.10  #include "xg_private.h"
    3.11 @@ -209,7 +208,7 @@ void *xg_memalign(size_t alignment, size
    3.12      if (ret != 0)
    3.13          return NULL;
    3.14      return ptr;
    3.15 -#elif defined(_BSD)
    3.16 +#elif defined(__NetBSD__) || defined(__OpenBSD__)
    3.17      return valloc(size);
    3.18  #else
    3.19      return memalign(alignment, size);