From: Matt Turner Date: Thu, 21 Jul 2016 18:46:23 +0000 (-0700) Subject: mesa: Use AC_HEADER_MAJOR to include correct header for major(). X-Git-Tag: upstream/17.1.0~7730 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=20553e4a2d952f6dc37f40f63d2c86b0718c58f9;p=platform%2Fupstream%2Fmesa.git mesa: Use AC_HEADER_MAJOR to include correct header for major(). Gentoo has been smoke testing an upcoming change to glibc. Bugzilla: https://bugs.gentoo.org/show_bug.cgi?id=580392 --- diff --git a/configure.ac b/configure.ac index 5c196a9..f6b27ae 100644 --- a/configure.ac +++ b/configure.ac @@ -777,6 +777,7 @@ if test "x$enable_asm" = xyes; then esac fi +AC_HEADER_MAJOR 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"]) diff --git a/src/gallium/winsys/svga/drm/vmw_screen.c b/src/gallium/winsys/svga/drm/vmw_screen.c index 7fcb6d2..74c77c5 100644 --- a/src/gallium/winsys/svga/drm/vmw_screen.c +++ b/src/gallium/winsys/svga/drm/vmw_screen.c @@ -31,7 +31,12 @@ #include "util/u_memory.h" #include "pipe/p_compiler.h" #include "util/u_hash_table.h" -#include +#ifdef MAJOR_IN_MKDEV +#include +#endif +#ifdef MAJOR_IN_SYSMACROS +#include +#endif #include #include diff --git a/src/gbm/main/gbm.c b/src/gbm/main/gbm.c index 5a6e758..20ff3f2 100644 --- a/src/gbm/main/gbm.c +++ b/src/gbm/main/gbm.c @@ -31,7 +31,12 @@ #include #include -#include +#ifdef MAJOR_IN_MKDEV +#include +#endif +#ifdef MAJOR_IN_SYSMACROS +#include +#endif #include #include #include diff --git a/src/loader/loader.c b/src/loader/loader.c index 522fba3..56ffc5d 100644 --- a/src/loader/loader.c +++ b/src/loader/loader.c @@ -80,8 +80,11 @@ #include "xmlpool.h" #endif #endif -#ifdef HAVE_SYSFS -#include +#ifdef MAJOR_IN_MKDEV +#include +#endif +#ifdef MAJOR_IN_SYSMACROS +#include #endif #include "loader.h"