From 3b86420d209d4858c310748215da31672783f64a Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 11 Feb 2023 16:15:13 -0800 Subject: configure: Use AC_SYS_LARGEFILE to enable large file support While files displayed by xmessage should never be more than 2gb in size, they may be stored on filesystems with large inodes (or in the future, dates past 2038). Signed-off-by: Alan Coopersmith --- configure.ac | 3 +++ readfile.c | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/configure.ac b/configure.ac index f6f2905..5ef33f4 100644 --- a/configure.ac +++ b/configure.ac @@ -37,6 +37,9 @@ m4_ifndef([XORG_MACROS_VERSION], XORG_MACROS_VERSION(1.8) XORG_DEFAULT_OPTIONS +# Checks for typedefs, structures, and compiler characteristics. +AC_SYS_LARGEFILE + # Checks for pkg-config packages PKG_CHECK_MODULES(XMESSAGE, xaw7) diff --git a/readfile.c b/readfile.c index 3e752e7..bcd7c73 100644 --- a/readfile.c +++ b/readfile.c @@ -30,6 +30,10 @@ from the X Consortium. */ /* $XFree86: xc/programs/xmessage/readfile.c,v 1.2 2000/02/14 19:21:04 dawes Exp $ */ +#ifdef HAVE_CONFIG_H +# include "config.h" +#endif + #include /* for types.h */ #include #include -- cgit v1.2.3