Commit 3165143f authored by Alessandro Rubini's avatar Alessandro Rubini

arch-wrs: prevent a build warning in pp_printf

Signed-off-by: Alessandro Rubini's avatarAlessandro Rubini <>
parent 1aabb5cc
......@@ -61,6 +61,7 @@ ifndef CONFIG_NO_PRINTF
OBJ-y += pp_printf/pp-printf.o
pp_printf/pp-printf.o: $(wildcard pp_printf/*.[ch])
$(MAKE) -C pp_printf pp-printf.o CC="$(CC)" LD="$(LD)" \
......@@ -2,6 +2,8 @@
A := arch-$(ARCH)
CFLAGS += -Itools
# Prevent a warning for a missing prototype in pp_printf, bug since ever
ARCH_PP_PRINTF_CFLAGS += -include ../$A/include/strnlen.h
OBJ-y += $A/wrs-startup.o \
$A/main-loop.o \
typedef unsigned int size_t;
extern size_t strnlen(const char *s, size_t max);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment