From f58b5924a54fbef69de33dbb0340d1bf9f4fd237 Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Mon, 13 Aug 2012 17:00:43 +0100 Subject: alter file fetcher to use mmap where available --- utils/config.h | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'utils/config.h') diff --git a/utils/config.h b/utils/config.h index 60b81967a..76142eeb6 100644 --- a/utils/config.h +++ b/utils/config.h @@ -90,6 +90,10 @@ char *realpath(const char *path, char *resolved_path); #undef HAVE_STDOUT #endif +#define HAVE_MMAP +#if (defined(_WIN32) || defined(riscos) || defined(__HAIKU__) || defined(__BEOS__) || defined(__amigaos4__) || defined(__AMIGA__)) +#undef HAVE_MMAP +#endif /* This section toggles build options on and off. * Simply undefine a symbol to turn the relevant feature off. @@ -127,14 +131,4 @@ char *realpath(const char *path, char *resolved_path); #define NO_IPV6 #endif -/* windows */ -#if (defined(_WIN32)) -#define SSIZET_FMT "Iu" -#elif (defined(riscos)) -#define SSIZET_FMT "zd" -#else -#define SSIZET_FMT "zd" -#define O_BINARY 0 -#endif - #endif -- cgit v1.2.3