]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUILD: threads: fix -Wundef for _POSIX_PRIORITY_SCHEDULING on libmusl
authorWilly Tarreau <w@1wt.eu>
Wed, 15 Sep 2021 08:12:04 +0000 (10:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Sep 2021 08:32:12 +0000 (10:32 +0200)
commit8ab941939480af65660182e343df22fcdced6005
tree256f5251390473db1f27e109f47c847a7af24f2b
parent80d3daad50144b22891bcfdd6356c57a21977ce1
BUILD: threads: fix -Wundef for _POSIX_PRIORITY_SCHEDULING on libmusl

Building with an old musl-based toolchain reported this warning:

  include/haproxy/thread.h: In function 'ha_thread_relax':
  include/haproxy/thread.h:256:5: warning: "_POSIX_PRIORITY_SCHEDULING" is not defined [-Wundef]
   #if _POSIX_PRIORITY_SCHEDULING
       ^

There were indeed two "#if" insteadd of #ifdef" for this macro, let's
fix them.
include/haproxy/thread.h