diff options
author | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-10-29 15:22:37 +0100 |
---|---|---|
committer | Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> | 2006-10-29 15:22:37 +0100 |
commit | 06b6b971d065226b983ba25da7ea8236ec37df04 (patch) | |
tree | c70914db33695da73f878949bbd52e6692b9afb2 | |
parent | 92d04e746bd9b8ad3ee217c165ace20468e079cf (diff) |
Make sure we have 64-bit file-offsets in libdrm.
-rw-r--r-- | configure.ac | 4 | ||||
-rw-r--r-- | hw/xfree86/os-support/drm/xf86drm.c | 1 | ||||
-rw-r--r-- | include/libdrm-config.h.in | 10 |
3 files changed, 13 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 140757f9f..6676ea60b 100644 --- a/configure.ac +++ b/configure.ac @@ -49,7 +49,8 @@ dnl xwin-config.h covers the XWin DDX. AC_CONFIG_HEADERS(include/xwin-config.h) dnl kdrive-config.h covers the kdrive DDX AC_CONFIG_HEADERS(include/kdrive-config.h) - +dnl libdrm now needs 64-bit file offsets +AC_CONFIG_HEADERS(include/libdrm-config.h) AC_PROG_CC AM_PROG_AS @@ -62,7 +63,6 @@ AC_PROG_MAKE_SET PKG_PROG_PKG_CONFIG AC_PROG_LEX AC_PROG_YACC -dnl for libdrm AC_SYS_LARGEFILE XORG_PROG_RAWCPP diff --git a/hw/xfree86/os-support/drm/xf86drm.c b/hw/xfree86/os-support/drm/xf86drm.c index ade4266a4..e990e286b 100644 --- a/hw/xfree86/os-support/drm/xf86drm.c +++ b/hw/xfree86/os-support/drm/xf86drm.c @@ -33,6 +33,7 @@ #ifdef HAVE_XORG_CONFIG_H +#include <libdrm-config.h> #include <xorg-config.h> #endif diff --git a/include/libdrm-config.h.in b/include/libdrm-config.h.in new file mode 100644 index 000000000..286004b96 --- /dev/null +++ b/include/libdrm-config.h.in @@ -0,0 +1,10 @@ +/* + * libdrm-config.h.in: not at all generated. + */ + +/* Number of bits in a file offset, on hosts where this is settable. */ +#undef _FILE_OFFSET_BITS + +/* Define for large files, on AIX-style hosts. */ +#undef _LARGE_FILES + |