summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2022-05-18 14:48:36 +0000
committerjim <jim@13f79535-47bb-0310-9956-ffa450edef68>2022-05-18 14:48:36 +0000
commitefffe7e81a01d003c7a4600143058771f95c50a5 (patch)
tree2592470689685858e909b961d55a57105bbb0bbc
parentcd3981c973140cbd5b6f7281f3ba1cc62cf3720b (diff)
downloadlibapr-efffe7e81a01d003c7a4600143058771f95c50a5.tar.gz
Prefer posix shared mem over SysV in all cases:
Have name based order same as anon git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1901037 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--CHANGES11
-rw-r--r--configure.in8
2 files changed, 11 insertions, 8 deletions
diff --git a/CHANGES b/CHANGES
index a7b48431c..0147ba04d 100644
--- a/CHANGES
+++ b/CHANGES
@@ -1,10 +1,13 @@
-*- coding: utf-8 -*-
Changes for APR 2.0.0
+ *) configure: Prefer posix name-based shared memory over SysV IPC.
+ [Jim Jagielski]
+
*) configure: Add --disable-sctp argument to forcibly disable SCTP
support, or --enable-sctp which fails if SCTP support is not
detected. [Lubos Uhliarik <luhliari redhat.com>, Joe Orton]
-
+
*) apr_dbm: Add dedicated apr_dbm_get_driver() function that returns
details of the driver selected and any error encountered. Add the
apr_dbm_open2() function that references the driver. [Graham Leggett]
@@ -68,7 +71,7 @@ Changes for APR 2.0.0
[Oleg Liatte <olegliatte gmail.com>]
*) Test %ld vs. %lld to avoid compiler emits using APR_OFF_T_FMT, in the
- case of apparently equivilant long and long long types. [William Rowe]
+ case of apparently equivilant long and long long types. [William Rowe]
*) Recognize APPLE predefined macros as equivilant to DARWIN. [Jim Jagielski]
@@ -210,7 +213,7 @@ Changes for APR 2.0.0
[Tom Donovan]
*) Changes to apr_pollset_method_e enum value of APR_POLLSET_POLL and
- APR_POLLSET_AIO_MSGQ. Restore APR_POLLSET_POLL to its pre-r1308910
+ APR_POLLSET_AIO_MSGQ. Restore APR_POLLSET_POLL to its pre-r1308910
(April 2012) value, and move APR_POLLSET_AIO_MSGQ ahead. This restores
ABI compat with released branches. [Eric Covener]
@@ -226,7 +229,7 @@ Changes for APR 2.0.0
*) Add support code to teach valgrind about APR pools, allocators, and
bucket allocators. [Stefan Fritsch]
- *) apr_socket_accept_filter(): The 2nd and 3rd arguments are now
+ *) apr_socket_accept_filter(): The 2nd and 3rd arguments are now
const char * instead of char *. [Jeff Trawick]
*) apr_brigades: add a check to prevent infinite while loop in case
diff --git a/configure.in b/configure.in
index d26182769..cd5fe78d7 100644
--- a/configure.in
+++ b/configure.in
@@ -1235,6 +1235,10 @@ havebeosarea="0"
haveos2shm="0"
havewin32shm="0"
APR_BEGIN_DECISION([namebased memory allocation method])
+APR_IFALLYES(header:sys/ipc.h header:sys/shm.h header:sys/file.h dnl
+ func:shmget func:shmat func:shmdt func:shmctl,
+ [haveshmget="1"
+ APR_DECIDE(USE_SHMEM_SHMGET, [SysV IPC shmget()])])
APR_IFALLYES(header:sys/mman.h func:mmap func:munmap,
[havemmaptmp="1"
APR_DECIDE(USE_SHMEM_MMAP_TMP,
@@ -1244,10 +1248,6 @@ APR_IFALLYES(header:sys/mman.h func:mmap func:munmap func:shm_open dnl
[havemmapshm="1"
APR_DECIDE(USE_SHMEM_MMAP_SHM,
[mmap() via POSIX.1 shm_open() on temporary file])])
-APR_IFALLYES(header:sys/ipc.h header:sys/shm.h header:sys/file.h dnl
- func:shmget func:shmat func:shmdt func:shmctl,
- [haveshmget="1"
- APR_DECIDE(USE_SHMEM_SHMGET, [SysV IPC shmget()])])
APR_IFALLYES(header:kernel/OS.h func:create_area,
[havebeosshm="1"
APR_DECIDE(USE_SHMEM_BEOS, [BeOS areas])])