mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 20:46:11 +02:00
BUILD: ssl: fix shctx build on older compilers
gcc < 3 breaks on shctx because of the missing arg in the lock macros. We don't need the arg at all, it's not used.
This commit is contained in:
parent
941a0c6209
commit
338a4fc2a8
12
src/shctx.c
12
src/shctx.c
@ -62,8 +62,8 @@ static void (*shared_session_new_cbk)(unsigned char *session, unsigned int sessi
|
||||
|
||||
/* Lock functions */
|
||||
#ifdef USE_PRIVATE_CACHE
|
||||
#define shared_context_lock(v)
|
||||
#define shared_context_unlock(v)
|
||||
#define shared_context_lock()
|
||||
#define shared_context_unlock()
|
||||
|
||||
#else
|
||||
#ifdef USE_SYSCALL_FUTEX
|
||||
@ -141,15 +141,15 @@ static inline void _shared_context_unlock(void)
|
||||
}
|
||||
}
|
||||
|
||||
#define shared_context_lock(v) if (use_shared_mem) _shared_context_lock()
|
||||
#define shared_context_lock() if (use_shared_mem) _shared_context_lock()
|
||||
|
||||
#define shared_context_unlock(v) if (use_shared_mem) _shared_context_unlock()
|
||||
#define shared_context_unlock() if (use_shared_mem) _shared_context_unlock()
|
||||
|
||||
#else /* USE_SYSCALL_FUTEX */
|
||||
|
||||
#define shared_context_lock(v) if (use_shared_mem) pthread_mutex_lock(&shctx->mutex)
|
||||
#define shared_context_lock() if (use_shared_mem) pthread_mutex_lock(&shctx->mutex)
|
||||
|
||||
#define shared_context_unlock(v) if (use_shared_mem) pthread_mutex_unlock(&shctx->mutex)
|
||||
#define shared_context_unlock() if (use_shared_mem) pthread_mutex_unlock(&shctx->mutex)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user