Index: Makefile.in
--- Makefile.in.orig	2024-02-24 09:28:04.000000000 +0100
+++ Makefile.in	2024-02-24 23:12:43.459459000 +0100
@@ -425,8 +425,8 @@
 
 # Use -n to prevent gzip from adding a timestamp to the .gz headers.
 GZIP_ENV = -9n
-DIST_SUBDIRS = lib src po tests debug
-SUBDIRS = $(am__append_1) src po tests
+DIST_SUBDIRS = lib src
+SUBDIRS = $(am__append_1) src
 @COND_DOC_TRUE@dist_doc_DATA = \
 @COND_DOC_TRUE@	AUTHORS \
 @COND_DOC_TRUE@	COPYING \
Index: configure
--- configure.orig	2024-02-24 23:12:43.462065000 +0100
+++ configure	2024-02-24 23:13:08.005404000 +0100
@@ -22649,49 +22649,7 @@
 	# are supported by Clang too. The flags after the empty line are
 	# for Clang.
 	for NEW_FLAG in \
-			-Wall \
-			-Wextra \
-			-Wvla \
-			-Wformat=2 \
-			-Winit-self \
-			-Wmissing-include-dirs \
-			-Wshift-overflow=2 \
-			-Wstrict-overflow=3 \
-			-Walloc-zero \
-			-Wduplicated-cond \
-			-Wfloat-equal \
-			-Wundef \
-			-Wshadow \
-			-Wpointer-arith \
-			-Wbad-function-cast \
-			-Wwrite-strings \
-			-Wdate-time \
-			-Wsign-conversion \
-			-Wfloat-conversion \
-			-Wlogical-op \
-			-Waggregate-return \
-			-Wstrict-prototypes \
-			-Wold-style-definition \
-			-Wmissing-prototypes \
-			-Wmissing-declarations \
-			-Wredundant-decls \
-			\
-			-Wc99-compat \
-			-Wc11-extensions \
-			-Wc2x-compat \
-			-Wc2x-extensions \
-			-Wpre-c2x-compat \
-			-Warray-bounds-pointer-arithmetic \
-			-Wassign-enum \
-			-Wconditional-uninitialized \
-			-Wdocumentation \
-			-Wduplicate-enum \
-			-Wempty-translation-unit \
-			-Wflexible-array-extensions \
-			-Wmissing-variable-declarations \
-			-Wnewline-eof \
-			-Wshift-sign-overflow \
-			-Wstring-conversion
+        none
 	do
 		{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if $CC accepts $NEW_FLAG" >&5
 printf %s "checking if $CC accepts $NEW_FLAG... " >&6; }
Index: src/common/tuklib_cpucores.c
--- src/common/tuklib_cpucores.c.orig	2024-02-23 19:36:31.000000000 +0100
+++ src/common/tuklib_cpucores.c	2024-02-24 23:12:43.462519000 +0100
@@ -22,7 +22,7 @@
 #	include <sched.h>
 
 // FreeBSD
-#elif defined(TUKLIB_CPUCORES_CPUSET)
+#elif defined(TUKLIB_CPUCORES_CPUSET) && !defined(__FreeBSD__)
 #	include <sys/param.h>
 #	include <sys/cpuset.h>
 
@@ -57,7 +57,7 @@
 	if (sched_getaffinity(0, sizeof(cpu_mask), &cpu_mask) == 0)
 		ret = (uint32_t)CPU_COUNT(&cpu_mask);
 
-#elif defined(TUKLIB_CPUCORES_CPUSET)
+#elif defined(TUKLIB_CPUCORES_CPUSET) && !defined(__FreeBSD__)
 	cpuset_t set;
 	if (cpuset_getaffinity(CPU_LEVEL_WHICH, CPU_WHICH_PID, -1,
 			sizeof(set), &set) == 0) {
