From 7845b4ecc7e8a6856ea42bb0f1f6bfcdbb8926ca Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 22 May 2018 12:56:59 -0700 Subject: [PATCH] Apply rust-lang/rust@8581b59fb39b0072665de59b1a70e708b251d4b0 --- configure | 6 ++++++ configure.ac | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/configure b/configure index 108a67f..b984f5f 100755 --- a/configure +++ b/configure @@ -11557,6 +11557,12 @@ fi fi fi + +case "${host_os}" in +darwin*) + have_mmap=no ;; +esac + if test "$have_mmap" = "no"; then VIEW_FILE=read.lo ALLOC_FILE=alloc.lo diff --git a/configure.ac b/configure.ac index e85fe98..b9056cc 100644 --- a/configure.ac +++ b/configure.ac @@ -295,6 +295,12 @@ else AC_CHECK_FUNC(mmap, [have_mmap=yes], [have_mmap=no]) fi fi + +case "${host_os}" in +darwin*) + have_mmap=no ;; +esac + if test "$have_mmap" = "no"; then VIEW_FILE=read.lo ALLOC_FILE=alloc.lo