From 7862d8d80e8612b3e7285ce2fe3ec901fda05fe6 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Tue, 20 Dec 2022 12:21:37 -0800 Subject: configure: Use AC_SYS_LARGEFILE to enable large file support Also adds include of "config.h" before any other header files are included, to avoid mismatch of _FILE_OFFSET_BITS when processing other header files. Signed-off-by: Alan Coopersmith --- Mailbox.c | 4 ++++ configure.ac | 3 +++ xbiff.c | 4 ++++ 3 files changed, 11 insertions(+) diff --git a/Mailbox.c b/Mailbox.c index 4d263b6..9a592dd 100644 --- a/Mailbox.c +++ b/Mailbox.c @@ -40,6 +40,10 @@ from the X Consortium. * XBiff*emptyPixmap: mailempty */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include /* for toolkit stuff */ #include /* for useful atom names */ #include /* for cursor constants */ diff --git a/configure.ac b/configure.ac index 52ddb3d..dd8cbff 100644 --- a/configure.ac +++ b/configure.ac @@ -43,6 +43,9 @@ PKG_CHECK_MODULES(XBIFF, xaw7 xmu xbitmaps xext x11) # Checks for headers AC_CHECK_HEADERS([paths.h]) +# Checks for typedefs, structures, and compiler characteristics. +AC_SYS_LARGEFILE + # Allow builder to set path to look for mailboxes AC_MSG_CHECKING([for mailbox directory]) AC_ARG_WITH([mailbox-directory], diff --git a/xbiff.c b/xbiff.c index 5fcdb51..dbf90eb 100644 --- a/xbiff.c +++ b/xbiff.c @@ -30,6 +30,10 @@ from the X Consortium. */ /* $XFree86: xc/programs/xbiff/xbiff.c,v 1.3tsi Exp $ */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include #include #include -- cgit v1.2.3