to check for the former, don't depend on (dangling) HAVE_MMAP_ANONYMOUS.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282925
91177308-0d34-0410-b5e6-
96231b3b80d8
/* Define to 1 if you have a working `mmap' system call. */
#undef HAVE_MMAP
-/* Define if mmap() uses MAP_ANONYMOUS to map anonymous pages, or undefine if
- it uses MAP_ANON */
-#undef HAVE_MMAP_ANONYMOUS
-
/* Define if mmap() can map files into memory */
#undef HAVE_MMAP_FILE
int fd = -1;
int MMFlags = MAP_PRIVATE |
-#ifdef HAVE_MMAP_ANONYMOUS
+#ifdef MAP_ANONYMOUS
MAP_ANONYMOUS
#else
MAP_ANON
int fd = -1;
int flags = MAP_PRIVATE |
-#ifdef HAVE_MMAP_ANONYMOUS
+#ifdef MAP_ANONYMOUS
MAP_ANONYMOUS
#else
MAP_ANON