Index: firmware/firmware.make
===================================================================
--- firmware/firmware.make (revision 27448)
+++ firmware/firmware.make (working copy)
@@ -11,6 +11,13 @@
ifndef APP_TYPE
INCLUDES += -I$(FIRMDIR)/libc/include
endif
+ifdef APP_TYPE
+ifeq ($(APP_TYPE),sdl-sim)
+ifdef CODEC
+INCLUDES += -I$(FIRMDIR)/libc/include
+endif
+endif
+endif

FIRMLIB_SRC += $(call preprocess, $(FIRMDIR)/SOURCES)
FIRMLIB_OBJ := $(call c2obj, $(FIRMLIB_SRC))