mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-31 12:30:06 +00:00
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19183 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
554 B
Plaintext
18 lines
554 B
Plaintext
#
|
|
# When allocating RWX memory, check whether we need to use /dev/zero
|
|
# as the file descriptor or not.
|
|
#
|
|
AC_DEFUN([AC_NEED_DEV_ZERO_FOR_MMAP],
|
|
[AC_CACHE_CHECK([if /dev/zero is needed for mmap],
|
|
ac_cv_need_dev_zero_for_mmap,
|
|
[if test "$llvm_cv_os_type" = "Interix" ; then
|
|
ac_cv_need_dev_zero_for_mmap=yes
|
|
else
|
|
ac_cv_need_dev_zero_for_mmap=no
|
|
fi
|
|
])
|
|
if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
|
|
AC_DEFINE([NEED_DEV_ZERO_FOR_MMAP],[1],
|
|
[Define if /dev/zero should be used when mapping RWX memory, or undefine if its not necessary])
|
|
fi])
|