diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index 35f784cb6c..47cf865a32 100644
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -17,6 +17,8 @@
* along with this program; if not, see .
*/
#include "qemu/osdep.h"
+#include "qemu/cutils.h"
+#include "qemu/path.h"
#include
#include
#include