]> git.kaiwu.me - haproxy.git/commit
BUILD: fd: unshare is not available on NetBSD
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 7 Sep 2026 13:39:53 +0000 (15:39 +0200)
committerWilliam Lallemand <wlallemand@haproxy.com>
Mon, 7 Sep 2026 13:45:40 +0000 (15:45 +0200)
commit5e9662ddd63a730235deec27489c7e8897fea21d
tree01ef8495159bf87b6e683a876d044c9fbad2da5e
parent75e93d71dd3ecb8411080b62df96b5479b0570ac
BUILD: fd: unshare is not available on NetBSD

Define HA_HAVE_UNSHARE which tests CLONE_FILES with an exception on
NetBSD which has the CLONE_FILES define for clone() but doesn't provide
unshare().

  src/thread.c: In function ‘start_extra_tgroup_threads’:
  src/thread.c:244:21: error: implicit declaration of function ‘unshare’ [-Werror=implicit-function-declaration]
    244 |                 if (unshare(CLONE_FILES) != 0) {
        |                     ^~~~~~~

No backport needed.
include/haproxy/compat.h
src/cfgparse-global.c
src/haload_init.c
src/thread.c