summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-20 12:21:37 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2022-12-20 19:14:25 -0800
commit7862d8d80e8612b3e7285ce2fe3ec901fda05fe6 (patch)
tree2519ad00c25808d6a7fd6165e655dac6b47f38c7
parentc3d0f59af3626b73c32e8e03a41d6a712909c7af (diff)
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 <alan.coopersmith@oracle.com>
-rw-r--r--Mailbox.c4
-rw-r--r--configure.ac3
-rw-r--r--xbiff.c4
3 files changed, 11 insertions, 0 deletions
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 <X11/IntrinsicP.h> /* for toolkit stuff */
#include <X11/StringDefs.h> /* for useful atom names */
#include <X11/cursorfont.h> /* 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 <stdio.h>
#include <stdlib.h>
#include <X11/Xatom.h>