[libvirt] [PATCH] daemon: Include stdlib.h in dispatch.c

Otherwise GCC complains about malloc being unknown on FreeBSD. --- daemon/dispatch.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/daemon/dispatch.c b/daemon/dispatch.c index 9731614..bf2ac73 100644 --- a/daemon/dispatch.c +++ b/daemon/dispatch.c @@ -24,6 +24,7 @@ #include <config.h> #include <stdio.h> +#include <stdlib.h> #include <stdarg.h> #include <stdbool.h> -- 1.7.0.4

On 11/13/2010 08:51 AM, Matthias Bolte wrote:
Otherwise GCC complains about malloc being unknown on FreeBSD. --- daemon/dispatch.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daemon/dispatch.c b/daemon/dispatch.c index 9731614..bf2ac73 100644 --- a/daemon/dispatch.c +++ b/daemon/dispatch.c @@ -24,6 +24,7 @@ #include <config.h>
#include <stdio.h> +#include <stdlib.h>
ACK. -- Eric Blake eblake@redhat.com +1-801-349-2682 Libvirt virtualization library http://libvirt.org

2010/11/13 Eric Blake <eblake@redhat.com>:
On 11/13/2010 08:51 AM, Matthias Bolte wrote:
Otherwise GCC complains about malloc being unknown on FreeBSD. --- daemon/dispatch.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/daemon/dispatch.c b/daemon/dispatch.c index 9731614..bf2ac73 100644 --- a/daemon/dispatch.c +++ b/daemon/dispatch.c @@ -24,6 +24,7 @@ #include <config.h>
#include <stdio.h> +#include <stdlib.h>
ACK.
Thanks, pushed. Matthias
participants (2)
-
Eric Blake
-
Matthias Bolte