summaryrefslogtreecommitdiffstats
path: root/src/loader
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2016-07-21 11:46:23 -0700
committerMatt Turner <mattst88@gmail.com>2016-07-26 12:12:41 -0700
commit20553e4a2d952f6dc37f40f63d2c86b0718c58f9 (patch)
tree3c615a5ff9e9237920bedd873794fbb4ce539e8f /src/loader
parent815135166c9891de4042990a05d0ef24bb90e409 (diff)
downloadexternal_mesa3d-20553e4a2d952f6dc37f40f63d2c86b0718c58f9.zip
external_mesa3d-20553e4a2d952f6dc37f40f63d2c86b0718c58f9.tar.gz
external_mesa3d-20553e4a2d952f6dc37f40f63d2c86b0718c58f9.tar.bz2
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
Diffstat (limited to 'src/loader')
-rw-r--r--src/loader/loader.c7
1 files changed, 5 insertions, 2 deletions
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 <sys/types.h>
+#ifdef MAJOR_IN_MKDEV
+#include <sys/mkdev.h>
+#endif
+#ifdef MAJOR_IN_SYSMACROS
+#include <sys/sysmacros.h>
#endif
#include "loader.h"