1
0
mirror of https://github.com/lwip-tcpip/lwip.git synced 2025-01-25 06:35:20 +00:00

sys.h: Avoid un #defined LWIP_COMPAT_MUTEX macro (usually #defined in arch/sys_arch.h)

This commit is contained in:
Dirk Ziegelmeier 2016-02-23 15:49:58 +01:00
parent fd4a109ffa
commit 3b5803ec9a

@ -99,6 +99,10 @@ typedef void (*lwip_thread_fn)(void *arg);
/** Define LWIP_COMPAT_MUTEX if the port has no mutexes and binary semaphores
should be used instead */
#ifndef LWIP_COMPAT_MUTEX
#define LWIP_COMPAT_MUTEX 0
#endif
#if LWIP_COMPAT_MUTEX
/* for old ports that don't have mutexes: define them to binary semaphores */
#define sys_mutex_t sys_sem_t