Debian kfreebsd uses the GNU libc that uses cpu_set_t instead of cpuset_t
Also do not include unnecessary headers on this platform
Fixes: #851
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/356>
#ifdef HAVE_PTHREAD
#include <pthread.h>
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#ifdef __FreeBSD__
#include <pthread_np.h>
-#endif
#include <sys/param.h>
#include <sys/cpuset.h>
#endif
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
static pa_atomic_t i_cpu = PA_ATOMIC_INIT(0);
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#ifdef __FreeBSD__
cpuset_t mask;
#else
cpu_set_t mask;
#ifdef HAVE_PTHREAD
#include <pthread.h>
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
#ifdef __FreeBSD__
#include <pthread_np.h>
-#endif
#include <sys/param.h>
#include <sys/cpuset.h>
#endif
#ifdef HAVE_PTHREAD_SETAFFINITY_NP
{
-#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__)
+#ifdef __FreeBSD__
cpuset_t mask;
#else
cpu_set_t mask;