diff --git a/bsd-user/main.c b/bsd-user/main.c
index b4a0a00c3fd1bff48f7b23e816f3f4a9583c47c3..0fb08e405d5f976929a33c3a330de97a782659e1 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"