https://gitlab.freedesktop.org/xorg/lib/libxcb/-/commit/fd04ab24a5e9

--- configure.orig	2022-05-03 22:15:58 UTC
+++ configure
@@ -20662,7 +20662,7 @@ case $host_os in
 fi
 NEEDED="xau >= 0.99.2"
 case $host_os in
-linux*) ;;
+linux*|dragonfly*|freebsd*) ;;
      *) NEEDED="$NEEDED pthread-stubs" ;;
 esac
 
