summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-11 16:15:13 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-02-11 16:19:45 -0800
commit3b86420d209d4858c310748215da31672783f64a (patch)
treebfc337a849da52fd501ddb56d4af441d3c1b91fd
parenta5da3e6589d6bfcdf4ed44cab0b1fac438224b60 (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--configure.ac3
-rw-r--r--readfile.c4
2 files changed, 7 insertions, 0 deletions
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 <X11/Xos.h> /* for types.h */
#include <sys/stat.h>
#include <stdio.h>