adjust a couple of ifdefs to handle NetBSD correctly
authorTobias Nygren <tnn@NetBSD.org>
Fri, 17 Apr 2015 18:27:55 +0000 (20:27 +0200)
committerMatt Turner <mattst88@gmail.com>
Fri, 17 Apr 2015 19:04:48 +0000 (12:04 -0700)
Acked-by: Matt Turner <mattst88@gmail.com>
Signed-off-by: Tobias Nygren <tnn@NetBSD.org>
src/gallium/include/pipe/p_config.h
src/mesa/drivers/dri/common/xmlconfig.c
src/mesa/x86/common_x86.c

index 5b6db7dcc675a59b112dbabda0bbf1377e365819..794aabe85f2688e9afd209197ebc6cddfc99f1ab 100644 (file)
 # define PIPE_ARCH_BIG_ENDIAN
 #endif
 
-#elif defined(__OpenBSD__)
+#elif defined(__OpenBSD__) || defined(__NetBSD__)
 #include <sys/types.h>
 #include <machine/endian.h>
 
index 2b284ccf28f189212bbca10082774f2d76547cbc..f17693e739ff0417f0e9c5a2f1ca4e953a5031e9 100644 (file)
@@ -56,7 +56,7 @@ extern char *program_invocation_name, *program_invocation_short_name;
 #        include <stdlib.h>
 #        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 <stdlib.h>
 #    define GET_PROGRAM_NAME() getprogname()
 #elif defined(__APPLE__)
index 86fbca91e6e650ebe28e9ab3c42bf604e1b2f189..1c8640514ab64563f140cda9a83a1958e90c8ab9 100644 (file)
@@ -42,7 +42,7 @@
 #include <sys/types.h>
 #include <sys/sysctl.h>
 #endif
-#if defined(USE_SSE_ASM) && defined(__OpenBSD__)
+#if defined(USE_SSE_ASM) && (defined(__OpenBSD__) || defined(__NetBSD__))
 #include <sys/param.h>
 #include <sys/sysctl.h>
 #include <machine/cpu.h>