Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2017-11-27 16:36:06 +0300
committerCorinna Vinschen <corinna@vinschen.de>2017-11-27 16:36:06 +0300
commit76f06705be30663cf823170fe66c9560c9d24566 (patch)
treea1af0f5967ac536ad6f98e55c8451758e4162b94 /winsup/cygwin/mmap.cc
parentbc14f1c17487244f9a3c0fccd3400788635a0d48 (diff)
cygwin: convert most #ifndef __x86_64__ to #ifdef __i386__
Address the real offender Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'winsup/cygwin/mmap.cc')
-rw-r--r--winsup/cygwin/mmap.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/winsup/cygwin/mmap.cc b/winsup/cygwin/mmap.cc
index 24bc162b5..4218466f0 100644
--- a/winsup/cygwin/mmap.cc
+++ b/winsup/cygwin/mmap.cc
@@ -1065,7 +1065,7 @@ mmap64 (void *addr, size_t len, int prot, int flags, int fd, off_t off)
Note that this isn't done in 64 bit environments since apparently
64 bit systems don't support the AT_ROUND_TO_PAGE flag, which is
required to get this right. Too bad. */
-#ifndef __x86_64__
+#ifdef __i386__
if (!wincap.is_wow64 ()
&& (((off_t) len > fsiz && !autogrow (flags))
|| roundup2 (len, wincap.page_size ())
@@ -1228,14 +1228,14 @@ out:
return ret;
}
-#ifdef __x86_64__
-EXPORT_ALIAS (mmap64, mmap)
-#else
+#ifdef __i386__
extern "C" void *
mmap (void *addr, size_t len, int prot, int flags, int fd, _off_t off)
{
return mmap64 (addr, len, prot, flags, fd, (off_t)off);
}
+#else
+EXPORT_ALIAS (mmap64, mmap)
#endif
/* munmap () removes all mmapped pages between addr and addr+len. */