diff options
author | Daniel Black <daniel@linux.ibm.com> | 2020-03-27 11:53:23 +1100 |
---|---|---|
committer | Anel <an3l@users.noreply.github.com> | 2020-04-03 15:30:33 +0200 |
commit | cd88a606f5c50db2c6ffe79c8a1a2fa00c06d4c4 (patch) | |
tree | 36ded0818d5e9647516d55ade653d02d352bc17f | |
parent | 05e4a87c8b074910f4bbf2b6a666a670764c4f89 (diff) | |
download | mariadb-git-cd88a606f5c50db2c6ffe79c8a1a2fa00c06d4c4.tar.gz |
Correct FreeBSD cpuset_t type
-rw-r--r-- | mysys/my_getncpus.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mysys/my_getncpus.c b/mysys/my_getncpus.c index 6890de4f827..0d081b72d11 100644 --- a/mysys/my_getncpus.c +++ b/mysys/my_getncpus.c @@ -39,7 +39,11 @@ int my_getncpus(void) configured via core affinity. */ #if (defined(__linux__) || defined(__FreeBSD__)) && defined(HAVE_PTHREAD_GETAFFINITY_NP) +#ifdef __linux__ cpu_set_t set; +#else + cpuset_t set; +#endif if (pthread_getaffinity_np(pthread_self(), sizeof(set), &set) == 0) { #ifdef CPU_COUNT |