qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch] Make qemu-nbd compile on OS X


From: Laurent Vivier
Subject: Re: [Qemu-devel] [patch] Make qemu-nbd compile on OS X
Date: Mon, 2 Jun 2008 20:21:22 +0200

Le 2 juin 08 à 19:44, C.W. Betts a écrit :

The following is a patch to make qemu-nbd compile on Mac OS X Leopard (any other versions are untested)

Index: qemu-nbd.c
===================================================================
--- qemu-nbd.c (revision 4654)
+++ qemu-nbd.c (working copy)
@@ -21,7 +21,11 @@
#include "block_int.h"
#include "nbd.h"

+#ifdef __APPLE__
+#include <malloc/malloc.h>
+#else
#include <malloc.h>
+#endif
#include <stdarg.h>
#include <stdio.h>
#include <getopt.h>

You must also modify the configure: qemu-nbd is only compiled for linux (because others are not tested).
if test `expr "$target_list" : ".*softmmu.*"` != 0 ; then
  tools="qemu-img\$(EXESUF) $tools"
  if [ "$linux" = "yes" ] ; then
      tools="qemu-nbd\$(EXESUF) $tools"
  fi
fi
Regards,
Laurent
----------------------- Laurent Vivier ----------------------
"The best way to predict the future is to invent it."
- Alan Kay






reply via email to

[Prev in Thread] Current Thread [Next in Thread]