summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch')
-rw-r--r--meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch26
1 files changed, 11 insertions, 15 deletions
diff --git a/meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch b/meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch
index fa6202da79..a78b16284f 100644
--- a/meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch
+++ b/meta/recipes-support/apr/apr/0001-configure-Remove-runtime-test-for-mmap-that-can-map-.patch
@@ -1,4 +1,4 @@
1From ee728971fd9d2da39356f1574d58d5daa3b24520 Mon Sep 17 00:00:00 2001 1From 316b81c462f065927d7fec56aadd5c8cb94d1cf0 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com> 2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 26 Aug 2022 00:28:08 -0700 3Date: Fri, 26 Aug 2022 00:28:08 -0700
4Subject: [PATCH] configure: Remove runtime test for mmap that can map 4Subject: [PATCH] configure: Remove runtime test for mmap that can map
@@ -10,24 +10,25 @@ mutexes
10 10
11Upstream-Status: Inappropriate [Cross-compile specific] 11Upstream-Status: Inappropriate [Cross-compile specific]
12Signed-off-by: Khem Raj <raj.khem@gmail.com> 12Signed-off-by: Khem Raj <raj.khem@gmail.com>
13
13--- 14---
14 configure.in | 32 -------------------------------- 15 configure.in | 30 ------------------------------
15 1 file changed, 32 deletions(-) 16 1 file changed, 30 deletions(-)
16 17
17diff --git a/configure.in b/configure.in 18diff --git a/configure.in b/configure.in
18index a99049d..f1f55c7 100644 19index 3663220..dce9789 100644
19--- a/configure.in 20--- a/configure.in
20+++ b/configure.in 21+++ b/configure.in
21@@ -1182,38 +1182,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \ 22@@ -1303,36 +1303,6 @@ AC_CHECK_FUNCS([mmap munmap shm_open shm_unlink shmget shmat shmdt shmctl \
22 APR_CHECK_DEFINE(MAP_ANON, sys/mman.h) 23 APR_CHECK_DEFINE(MAP_ANON, sys/mman.h)
23 AC_CHECK_FILE(/dev/zero) 24 AC_CHECK_FILE(/dev/zero)
24 25
25-# Not all systems can mmap /dev/zero (such as HP-UX). Check for that. 26-# Not all systems can mmap /dev/zero (such as HP-UX). Check for that.
26-if test "$ac_cv_func_mmap" = "yes" && 27-if test "$ac_cv_func_mmap" = "yes" &&
27- test "$ac_cv_file__dev_zero" = "yes"; then 28- test "$ac_cv_file__dev_zero" = "yes"; then
28- AC_MSG_CHECKING(for mmap that can map /dev/zero) 29- AC_CACHE_CHECK([for mmap that can map /dev/zero],
29- AC_TRY_RUN([ 30- [ac_cv_mmap__dev_zero],
30-#include <sys/types.h> 31- [AC_TRY_RUN([#include <sys/types.h>
31-#include <sys/stat.h> 32-#include <sys/stat.h>
32-#include <fcntl.h> 33-#include <fcntl.h>
33-#ifdef HAVE_SYS_MMAN_H 34-#ifdef HAVE_SYS_MMAN_H
@@ -49,14 +50,9 @@ index a99049d..f1f55c7 100644
49- return 3; 50- return 3;
50- } 51- }
51- return 0; 52- return 0;
52- }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no]) 53- }], [], [ac_cv_file__dev_zero=no], [ac_cv_file__dev_zero=no])])
53-
54- AC_MSG_RESULT($ac_cv_file__dev_zero)
55-fi 54-fi
56- 55-
57 # Now we determine which one is our anonymous shmem preference. 56 # Now we determine which one is our anonymous shmem preference.
58 haveshmgetanon="0" 57 haveshmgetanon="0"
59 havemmapzero="0" 58 havemmapzero="0"
60--
612.37.2
62