diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-20 12:21:37 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-12-20 19:14:25 -0800 |
commit | 7862d8d80e8612b3e7285ce2fe3ec901fda05fe6 (patch) | |
tree | 2519ad00c25808d6a7fd6165e655dac6b47f38c7 | |
parent | c3d0f59af3626b73c32e8e03a41d6a712909c7af (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.c | 4 | ||||
-rw-r--r-- | configure.ac | 3 | ||||
-rw-r--r-- | xbiff.c | 4 |
3 files changed, 11 insertions, 0 deletions
@@ -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], @@ -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> |