Browse Source

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
tags/13.0-branchpoint
Matt Turner 9 years ago
parent
commit
20553e4a2d
4 changed files with 18 additions and 4 deletions
  1. 1
    0
      configure.ac
  2. 6
    1
      src/gallium/winsys/svga/drm/vmw_screen.c
  3. 6
    1
      src/gbm/main/gbm.c
  4. 5
    2
      src/loader/loader.c

+ 1
- 0
configure.ac View File

@@ -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"])

+ 6
- 1
src/gallium/winsys/svga/drm/vmw_screen.c View File

@@ -31,7 +31,12 @@
#include "util/u_memory.h"
#include "pipe/p_compiler.h"
#include "util/u_hash_table.h"
#include <sys/types.h>
#ifdef MAJOR_IN_MKDEV
#include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
#include <sys/sysmacros.h>
#endif
#include <sys/stat.h>
#include <unistd.h>


+ 6
- 1
src/gbm/main/gbm.c View File

@@ -31,7 +31,12 @@
#include <string.h>
#include <stdint.h>

#include <sys/types.h>
#ifdef MAJOR_IN_MKDEV
#include <sys/mkdev.h>
#endif
#ifdef MAJOR_IN_SYSMACROS
#include <sys/sysmacros.h>
#endif
#include <sys/stat.h>
#include <unistd.h>
#include <errno.h>

+ 5
- 2
src/loader/loader.c View File

@@ -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"


Loading…
Cancel
Save