diff --git a/bsd-user/main.c b/bsd-user/main.c
index b4a0a00c3f..0fb08e405d 100644
--- a/bsd-user/main.c
+++ b/bsd-user/main.c
@@ -17,6 +17,7 @@
* along with this program; if not, see .
*/
#include "qemu/osdep.h"
+#include "qemu-version.h"
#include
#include "qapi/error.h"