core: additional change to commit 63cc0c1df10138 - also remove #ifndef SHM_MEM
authorHenning Westerholt <hw@kamailio.org>
Wed, 26 Dec 2018 20:24:23 +0000 (21:24 +0100)
committerHenning Westerholt <hw@kamailio.org>
Wed, 26 Dec 2018 20:24:23 +0000 (21:24 +0100)
src/core/tcp_main.c
src/core/timer.c

index 3ac1289..7266c63 100644 (file)
 #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) */
index fc6f498..92e26ba 100644 (file)
@@ -1017,11 +1017,6 @@ error:
 
 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);
 }