[SLOF] [PATCH 2/2] takeover: Fix header includes

Thomas Huth thuth at redhat.com
Mon Sep 28 06:27:47 AEST 2015

The ioctl.h header has been removed with commit 6495aef5b625b9ddae
("net-snk: Remove module system"), so it can not be included in
the takeover client anymore. Thus remove the include statement (which
is no problem since the takeover client does not use ioctls anyway).
Include unistd.h instead, to avoid that the compiler is printing
out a warning about a missing prototype of the function sbrk().

Signed-off-by: Thomas Huth <thuth at redhat.com>
 clients/takeover/main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clients/takeover/main.c b/clients/takeover/main.c
index 360d8ea..1e1b026 100644
--- a/clients/takeover/main.c
+++ b/clients/takeover/main.c
@@ -16,7 +16,7 @@
 #include <of.h>
 #include <pci.h>
 #include <cpu.h>
-#include <ioctl.h>
+#include <unistd.h>
 #include <takeover.h>
 extern void call_client_interface(of_arg_t *);

More information about the SLOF mailing list