[libvirt] [dbus PATCH] tests: include stdlib.h

Ján Tomko posted 1 patch 5 years, 10 months ago
Failed in applying to current master (apply log)
tests/test_util.c | 2 ++
1 file changed, 2 insertions(+)
[libvirt] [dbus PATCH] tests: include stdlib.h
Posted by Ján Tomko 5 years, 10 months ago
On some systems, EXIT_SUCCESS and EXIT_FAILURE require inclusion
of stdlib.h

Signed-off-by: Ján Tomko <jtomko@redhat.com>
---
Pushed as a build breaker fix.

 tests/test_util.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/test_util.c b/tests/test_util.c
index 9611192..b7fafb6 100644
--- a/tests/test_util.c
+++ b/tests/test_util.c
@@ -1,5 +1,7 @@
 #include "util.h"
 
+#include <stdlib.h>
+
 static gint
 virtTestEncodeStr(const gchar *input,
                   const gchar *expected)
-- 
2.16.1

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list