diff --git a/appl/ftp/ftp/ftp.c b/appl/ftp/ftp/ftp.c index 0d571f571..a55a2c01c 100644 --- a/appl/ftp/ftp/ftp.c +++ b/appl/ftp/ftp/ftp.c @@ -555,7 +555,7 @@ copy_stream(FILE *from, FILE *to) int hashbytes = HASHBYTES; struct stat st; -#ifdef HAVE_MMAP +#if defined(HAVE_MMAP) && !defined(NO_MMAP) void *chunk; #ifndef MAP_FAILED diff --git a/appl/ftp/ftpd/ftpd.c b/appl/ftp/ftpd/ftpd.c index 203dcb565..805b3f57c 100644 --- a/appl/ftp/ftpd/ftpd.c +++ b/appl/ftp/ftpd/ftpd.c @@ -1303,7 +1303,7 @@ send_data(FILE *instr, FILE *outstr) case TYPE_I: case TYPE_L: -#ifdef HAVE_MMAP +#if defined(HAVE_MMAP) && !defined(NO_MMAP) #ifndef MAP_FAILED #define MAP_FAILED (-1) #endif