From: Alan Coopersmith Date: Sat, 16 May 2015 02:05:45 +0000 (-0700) Subject: swrast: Build fix for Solaris X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=31cd2d75dc3844e40143f649fe383de17c152a13;p=mesa.git swrast: Build fix for Solaris Fixes regression from commit 5b2d3480f57168d50ad24cf0b8c9244414bd3701 Cc: "10.5 10.6" Signed-off-by: Alan Coopersmith Reviewed-by: Jeremy Huddleston Sequoia --- diff --git a/configure.ac b/configure.ac index 095e23e69b6..5594548ddfd 100644 --- a/configure.ac +++ b/configure.ac @@ -649,6 +649,7 @@ if test "x$enable_asm" = xyes; then fi AC_CHECK_HEADER([xlocale.h], [DEFINES="$DEFINES -DHAVE_XLOCALE_H"]) +AC_CHECK_HEADER([sys/sysctl.h], [DEFINES="$DEFINES -DHAVE_SYS_SYSCTL_H"]) AC_CHECK_FUNC([strtof], [DEFINES="$DEFINES -DHAVE_STRTOF"]) dnl Check to see if dlopen is in default libraries (like Solaris, which diff --git a/src/mesa/drivers/dri/swrast/swrast.c b/src/mesa/drivers/dri/swrast/swrast.c index cbc946c3ffd..2d4bb702fc2 100644 --- a/src/mesa/drivers/dri/swrast/swrast.c +++ b/src/mesa/drivers/dri/swrast/swrast.c @@ -62,7 +62,9 @@ #include "swrast/s_context.h" #include -#include +#ifdef HAVE_SYS_SYSCTL_H +# include +#endif const __DRIextension **__driDriverGetExtensions_swrast(void);