Module: kamailio
Branch: master
Commit: da4e0d2dab0678374abbe6fa2274a6a434cf39c5
URL: 
https://github.com/kamailio/kamailio/commit/da4e0d2dab0678374abbe6fa2274a6a434cf39c5

Author: Xenofon Karamanos <[email protected]>
Committer: Xenofon Karamanos <[email protected]>
Date: 2025-12-09T14:00:10+01:00

core: Add missing USE_FUTEX check in locks

---

Modified: src/core/lock_alloc.h

---

Diff:  
https://github.com/kamailio/kamailio/commit/da4e0d2dab0678374abbe6fa2274a6a434cf39c5.diff
Patch: 
https://github.com/kamailio/kamailio/commit/da4e0d2dab0678374abbe6fa2274a6a434cf39c5.patch

---

diff --git a/src/core/lock_alloc.h b/src/core/lock_alloc.h
index 9efe666a020..bf3574e5b14 100644
--- a/src/core/lock_alloc.h
+++ b/src/core/lock_alloc.h
@@ -56,7 +56,8 @@ Implements: (see also locking.h)
 #include "mem/mem.h"
 #include "mem/shm_mem.h"
 
-#if defined(FAST_LOCK) || defined(USE_PTHREAD_MUTEX) || defined(USE_POSIX_SEM)
+#if defined(FAST_LOCK) || defined(USE_PTHREAD_MUTEX) || defined(USE_POSIX_SEM) 
\
+               || defined(USE_FUTEX)
 /* simple locks*/
 #define lock_alloc() shm_malloc(sizeof(gen_lock_t))
 #define lock_dealloc(lock) shm_free((void *)lock)

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to