In *-*-user/ build dirs CONFIG_USER_ONLY is defined via config-target.h. In libuser/ it is not defined.
Add it via QEMU_CFLAGS. Signed-off-by: Andreas Färber <afaer...@suse.de> --- Soon needed for cpu.c. Makefile.user | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/Makefile.user b/Makefile.user index b717820..ab70eb3 100644 --- a/Makefile.user +++ b/Makefile.user @@ -10,6 +10,7 @@ $(call set-vpath, $(SRC_PATH)) QEMU_CFLAGS+=-I.. QEMU_CFLAGS += -I$(SRC_PATH)/include +QEMU_CFLAGS += -DCONFIG_USER_ONLY include $(SRC_PATH)/Makefile.objs -- 1.7.7