From cabd13a69a81cc2b7bdb7e9ce5f23288694be78e Mon Sep 17 00:00:00 2001 From: Henning Westerholt Date: Wed, 26 Dec 2018 21:24:23 +0100 Subject: [PATCH] core: additional change to commit 63cc0c1df10138 - also remove #ifndef SHM_MEM --- src/core/tcp_main.c | 4 ---- src/core/timer.c | 10 ---------- 2 files changed, 14 deletions(-) diff --git a/src/core/tcp_main.c b/src/core/tcp_main.c index 3ac1289779c..7266c63ceaf 100644 --- a/src/core/tcp_main.c +++ b/src/core/tcp_main.c @@ -28,10 +28,6 @@ #ifdef USE_TCP -#ifndef SHM_MEM -#error "shared memory support needed (add -DSHM_MEM to Makefile.defs)" -#endif - #define HANDLE_IO_INLINE #include "io_wait.h" /* include first to make sure the needed features are turned on (e.g. _GNU_SOURCE for POLLRDHUP) */ diff --git a/src/core/timer.c b/src/core/timer.c index fc6f49872ca..92e26ba5f15 100644 --- a/src/core/timer.c +++ b/src/core/timer.c @@ -1017,11 +1017,6 @@ int register_timer(timer_function f, void* param, unsigned int interval) ticks_t get_ticks_raw() { -#ifndef SHM_MEM - LM_CRIT("no shared memory support compiled in" - ", returning 0 (probably wrong)"); - return 0; -#endif return *ticks; } @@ -1030,11 +1025,6 @@ ticks_t get_ticks_raw() /* returns tick in s (for compatibility with the old code) */ ticks_t get_ticks() { -#ifndef SHM_MEM - LM_CRIT("no shared memory support compiled in" - ", returning 0 (probably wrong)"); - return 0; -#endif return TICKS_TO_S(*ticks); }