qemu-devel
[Top][All Lists]
Advanced

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

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


From: C.W. Betts
Subject: [Qemu-devel] [patch] Make qemu-nbd compile on OS X
Date: Mon, 2 Jun 2008 11:44:17 -0600

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>







reply via email to

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