From f857260e2931bf30bd17eaa9da3ce992326d1732 Mon Sep 17 00:00:00 2001 From: Simon Goldschmidt Date: Wed, 11 Dec 2019 22:20:14 +0100 Subject: [PATCH] fix compiling fuzz test under Linux after merging contrib to main repo --- contrib/ports/unix/port/sys_arch.c | 2 ++ test/fuzz/Makefile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/contrib/ports/unix/port/sys_arch.c b/contrib/ports/unix/port/sys_arch.c index b083ccbf..1b61f205 100644 --- a/contrib/ports/unix/port/sys_arch.c +++ b/contrib/ports/unix/port/sys_arch.c @@ -752,6 +752,7 @@ sys_arch_unprotect(sys_prot_t pval) } #endif /* SYS_LIGHTWEIGHT_PROT */ +#if !NO_SYS /* get keyboard state to terminate the debug app by using select */ int lwip_unix_keypressed(void) @@ -762,3 +763,4 @@ lwip_unix_keypressed(void) FD_SET(0, &fds); return select(1, &fds, NULL, NULL, &tv); } +#endif /* !NO_SYS */ diff --git a/test/fuzz/Makefile b/test/fuzz/Makefile index ccbe9561..0187563b 100644 --- a/test/fuzz/Makefile +++ b/test/fuzz/Makefile @@ -37,7 +37,8 @@ LDFLAGS=-lm # use 'make D=-DUSER_DEFINE' to pass a user define to gcc CFLAGS=-O0 $(D) -CONTRIBDIR=../../../lwip-contrib +LWIPDIR=../../src +CONTRIBDIR=../../contrib include $(CONTRIBDIR)/ports/unix/Common.mk clean: