util: Fix broken build on Haiku
authorThomas Huth <thuth@redhat.com>
Mon, 18 Jul 2022 16:42:11 +0000 (18:42 +0200)
committerThomas Huth <thuth@redhat.com>
Mon, 18 Jul 2022 18:24:36 +0000 (20:24 +0200)
A recent commit moved some Haiku-specific code parts from oslib-posix.c
to cutils.c, but failed to move the corresponding header #include
statement, too, so "make vm-build-haiku.x86_64" is currently broken.
Fix it by moving the header #include, too.

Fixes: 06680b15b4 ("include: move qemu_*_exec_dir() to cutils")
Message-Id: <20220718172026.139004-1-thuth@redhat.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
util/cutils.c
util/oslib-posix.c

index 8199dac5988aa4d40d5d581fdbc88e2994614545..cb43dda213cf0728ca1a0c38484e4adbe38c1330 100644 (file)
 #include <sys/sysctl.h>
 #endif
 
+#ifdef __HAIKU__
+#include <kernel/image.h>
+#endif
+
 #ifdef G_OS_WIN32
 #include <pathcch.h>
 #include <wchar.h>
index 7a34c1657c02f354d797def7aaf8a90e4de27722..bffec18869edbca042595f3b0ca60671a577bbe7 100644 (file)
 #include <mach-o/dyld.h>
 #endif
 
-#ifdef __HAIKU__
-#include <kernel/image.h>
-#endif
-
 #include "qemu/mmap-alloc.h"
 
 #ifdef CONFIG_DEBUG_STACK_USAGE