From 73619269ae217fb79d8b0c93fdac1d411b90bff6 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Tue, 17 Feb 2009 10:43:26 +0000 Subject: [PATCH] Build fix for 'driver.c' when building with loadable modules The 'asprintf' -> 'virAsprintf' transition made in [043d702f] "use virAsprintf instead of asprintf" introducted a build error for 'driver.c' as 'util.h' has to be included. Signed-off-by: Maximilian Wilhelm --- ChangeLog | 9 +++++++++ src/driver.c | 3 ++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index d0fbd62320..1ce60d369d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +Tue Feb 17 11:41:10 +0100 2009 Maximilian Wilhelm + + Build fix for 'driver.c' when building with loadable modules + The 'asprintf' -> 'virAsprintf' transition made in + [9e5d9950] "use virAsprintf instead of asprintf" introducted + a build error for 'driver.c' as 'util.h' has to be included. + + Signed-off-by: Maximilian Wilhelm + Tue Feb 17 11:32:01 +0100 2009 Jim Meyering Avoid link failure when configured --with-driver-modules diff --git a/src/driver.c b/src/driver.c index fda64ddfe2..01d4a51675 100644 --- a/src/driver.c +++ b/src/driver.c @@ -1,7 +1,7 @@ /* * driver.c: Helpers for loading drivers * - * Copyright (C) 2006-2008 Red Hat, Inc. + * Copyright (C) 2006-2009 Red Hat, Inc. * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -27,6 +27,7 @@ #include "driver.h" #include "memory.h" #include "logging.h" +#include "util.h" #define DEFAULT_DRIVER_DIR LIBDIR "/libvirt/drivers" -- GitLab