[libvirt] [PATCH] util: Fix build without devmapper

Jiri Denemark jdenemar at redhat.com
Thu May 16 10:23:24 UTC 2013


stdlib.h header file needed for getenv was only transitively included
through libdevmapper.h.
---

Pushed as a trivial build-breaker.

 src/util/virutil.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/util/virutil.c b/src/util/virutil.c
index ab3c82f..7f4ecd6 100644
--- a/src/util/virutil.c
+++ b/src/util/virutil.c
@@ -26,6 +26,7 @@
 
 #include <config.h>
 
+#include <stdlib.h>
 #include <dirent.h>
 #include <stdio.h>
 #include <stdarg.h>
-- 
1.8.2.1




More information about the libvir-list mailing list