diff options
author | Jan Beich <[email protected]> | 2019-09-16 12:55:06 +0000 |
---|---|---|
committer | Matt Turner <[email protected]> | 2019-10-09 12:55:15 -0700 |
commit | 6ea0a918bb87076e7d7f63314929760e6bc72041 (patch) | |
tree | caf4d336ea30b568836fdb9c1a490730cdbc3c87 | |
parent | e892d9337f080c5bbd78aaeaf53cca6e1231daa1 (diff) |
util: simplify BSD includes
Reviewed-by: Matt Turner <[email protected]>
Signed-off-by: Jan Beich <[email protected]>
-rw-r--r-- | src/util/u_cpu_detect.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/util/u_cpu_detect.c b/src/util/u_cpu_detect.c index 960f990636d..79da996a7aa 100644 --- a/src/util/u_cpu_detect.c +++ b/src/util/u_cpu_detect.c @@ -47,22 +47,17 @@ #endif #endif -#if defined(PIPE_OS_NETBSD) || defined(PIPE_OS_OPENBSD) +#if defined(PIPE_OS_BSD) #include <sys/param.h> #include <sys/sysctl.h> #include <machine/cpu.h> #endif -#if defined(PIPE_OS_FREEBSD) || defined(PIPE_OS_DRAGONFLY) -#include <sys/types.h> -#include <sys/sysctl.h> +#if defined(PIPE_OS_FREEBSD) #if __has_include(<sys/auxv.h>) #include <sys/auxv.h> #define HAVE_ELF_AUX_INFO #endif -#if defined(PIPE_ARCH_PPC) -#include <machine/cpu.h> -#endif #endif #if defined(PIPE_OS_LINUX) |