From 3db38110542785a0c4e9a9b24800d46448cd752c Mon Sep 17 00:00:00 2001 From: goldsimon Date: Wed, 22 Feb 2012 21:47:33 +0100 Subject: [PATCH] unit tests lwipopts.h: NO_SYS==1, disable netconn and sockets (not tests) -> lwipopts.h is now usable for unix unit test makefile, too --- test/unit/lwipopts.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/unit/lwipopts.h b/test/unit/lwipopts.h index fce2f064..88e76d7a 100644 --- a/test/unit/lwipopts.h +++ b/test/unit/lwipopts.h @@ -32,6 +32,11 @@ #ifndef __LWIPOPTS_H__ #define __LWIPOPTS_H__ +/* Prevent having to link sys_arch.c (we don't test the API layers in unit tests) */ +#define NO_SYS 1 +#define LWIP_NETCONN 0 +#define LWIP_SOCKET 0 + /* Minimal changes to opt.h required for tcp unit tests: */ #define MEM_SIZE 16000 #define TCP_SND_QUEUELEN 40