From: Tobias Nygren Date: Fri, 17 Apr 2015 18:27:55 +0000 (+0200) Subject: adjust a couple of ifdefs to handle NetBSD correctly X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cfab4ea9c654819c96272a62d7b1664e9038fe91;p=mesa.git adjust a couple of ifdefs to handle NetBSD correctly Acked-by: Matt Turner Signed-off-by: Tobias Nygren --- diff --git a/src/gallium/include/pipe/p_config.h b/src/gallium/include/pipe/p_config.h index 5b6db7dcc67..794aabe85f2 100644 --- a/src/gallium/include/pipe/p_config.h +++ b/src/gallium/include/pipe/p_config.h @@ -157,7 +157,7 @@ # define PIPE_ARCH_BIG_ENDIAN #endif -#elif defined(__OpenBSD__) +#elif defined(__OpenBSD__) || defined(__NetBSD__) #include #include diff --git a/src/mesa/drivers/dri/common/xmlconfig.c b/src/mesa/drivers/dri/common/xmlconfig.c index 2b284ccf28f..f17693e739f 100644 --- a/src/mesa/drivers/dri/common/xmlconfig.c +++ b/src/mesa/drivers/dri/common/xmlconfig.c @@ -56,7 +56,7 @@ extern char *program_invocation_name, *program_invocation_short_name; # include # define GET_PROGRAM_NAME() getprogname() # endif -#elif defined(__NetBSD__) && defined(__NetBSD_Version) && (__NetBSD_Version >= 106000100) +#elif defined(__NetBSD__) && defined(__NetBSD_Version__) && (__NetBSD_Version__ >= 106000100) # include # define GET_PROGRAM_NAME() getprogname() #elif defined(__APPLE__) diff --git a/src/mesa/x86/common_x86.c b/src/mesa/x86/common_x86.c index 86fbca91e6e..1c8640514ab 100644 --- a/src/mesa/x86/common_x86.c +++ b/src/mesa/x86/common_x86.c @@ -42,7 +42,7 @@ #include #include #endif -#if defined(USE_SSE_ASM) && defined(__OpenBSD__) +#if defined(USE_SSE_ASM) && (defined(__OpenBSD__) || defined(__NetBSD__)) #include #include #include