* largefile_wrappers.h (fopen_for_input): Define along with
fopen_for_output.
* mmap_cache.c: Include "largefile_wrappers.h".
(fopen_for_input): Remove.
#ifdef _LARGEFILE64_SOURCE
# ifdef HAVE_FOPEN64
+# define fopen_for_input fopen64
# define fopen_for_output fopen64
# else
+# define fopen_for_input fopen
# define fopen_for_output fopen
# endif
# define struct_stat struct stat64
# define struct_rlimit struct rlimit64
# define set_rlimit setrlimit64
#else
+# define fopen_for_input fopen
# define fopen_for_output fopen
# define struct_stat struct stat
# define stat_file stat
#include "defs.h"
#include <limits.h>
+#include "largefile_wrappers.h"
#include "mmap_cache.h"
#include "xstring.h"
-#ifdef _LARGEFILE64_SOURCE
-# ifdef HAVE_FOPEN64
-# define fopen_for_input fopen64
-# else
-# define fopen_for_input fopen
-# endif
-#else
-# define fopen_for_input fopen
-#endif
-
static unsigned int mmap_cache_generation;
static bool use_mmap_cache;