mirror of
https://github.com/libvirt/libvirt.git
synced 2026-10-02 12:20:06 -05:00
maint: add configure checks for BSD CPU affinity
Check for presence of sys/cpuset.h header and cpuset_getaffinity() in configure instead of just using #ifdef __FreeBSD__ for that code.
This commit is contained in:
1 parent
122cd16982
commit
d779d218d4
2 files changed
+15
-2
No files matched your search
@@ -2604,6 +2604,16 @@ AC_CHECK_DECLS([BRDGSFD, BRDGADD, BRDGDEL],
|
||||
#include <net/if_bridgevar.h>
|
||||
])
|
||||
|
||||
# Check for BSD CPU affinity availability
|
||||
AC_CHECK_DECLS([cpuset_getaffinity],
|
||||
[AC_DEFINE([HAVE_BSD_CPU_AFFINITY],
|
||||
[1],
|
||||
[whether BSD CPU affinity management is available])],
|
||||
[],
|
||||
[#include <sys/param.h>
|
||||
#include <sys/cpuset.h>
|
||||
])
|
||||
|
||||
# Check if we need to look for ifconfig
|
||||
if test "$want_ifconfig" = "yes"; then
|
||||
AC_PATH_PROG([IFCONFIG_PATH], [ifconfig])
|
||||
|
||||
Reference in new issue
Block a user