]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD/IMPORT: fix compilation with PLOCK_DISABLE_EBO=1
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Aug 2023 09:04:42 +0000 (11:04 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 17 Aug 2023 09:16:54 +0000 (11:16 +0200)
commitcd97ba147c4ff11e33d6683ec6a756957602405b
treee4c9ba84503cb725f38741802a39a1d145da83e2
parent544c2f2d9e3b74336fd81189165eeb1667dfe078
BUILD/IMPORT: fix compilation with PLOCK_DISABLE_EBO=1

Compilation is broken due to missing __pl_wait_unlock_long() definition
when building with PLOCK_DISABLE_EBO=1. This has been introduced since
the following commit which activates the inlining version of
pl_wait_unlock_long() :
  commit 071d689a514dac522ac3654f53bc22214b5716d0
  MINOR: threads: inline the wait function for pthread_rwlock emulation

Add an extra check on PLOCK_DISABLE_EBO before choosing the inline or
default version of pl_wait_unlock_long() to fix this.
include/import/plock.h