summaryrefslogtreecommitdiff
path: root/network/mod_bw/apr_atomic_fix.patch
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-03 08:57:50 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-10-03 08:57:50 +0700
commit952c093f0fd8113e5f3859e89d92fcba5579ed16 (patch)
tree57e5ca8d133aa9095f823b78d74fe3bf6cec4a7a /network/mod_bw/apr_atomic_fix.patch
parent4cd63afd3e2ca8d60ff182bb542d7ce28aca18d0 (diff)
downloadslackbuilds-952c093f0fd8113e5f3859e89d92fcba5579ed16.tar.gz
network/mod_bw: Added (apache module).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/mod_bw/apr_atomic_fix.patch')
-rw-r--r--network/mod_bw/apr_atomic_fix.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/network/mod_bw/apr_atomic_fix.patch b/network/mod_bw/apr_atomic_fix.patch
new file mode 100644
index 0000000000..4cc2dd5817
--- /dev/null
+++ b/network/mod_bw/apr_atomic_fix.patch
@@ -0,0 +1,18 @@
+--- mod_bw.c.orig 2009-12-09 12:56:13.629281024 +1100
++++ mod_bw.c 2009-12-09 12:56:30.598862905 +1100
+@@ -58,15 +58,6 @@
+ #define BANDWIDTH_ENABLED 1<<1
+ #define SHARED_FILENAME "logs/bwmod_runtime_status"
+
+-/* Compatibility for ARP < 1 */
+-#if (APR_MAJOR_VERSION < 1)
+- #define apr_atomic_inc32 apr_atomic_inc
+- #define apr_atomic_dec32 apr_atomic_dec
+- #define apr_atomic_add32 apr_atomic_add
+- #define apr_atomic_cas32 apr_atomic_cas
+- #define apr_atomic_set32 apr_atomic_set
+-#endif
+-
+ /* Enum types of "from address" */
+ enum from_type {
+ T_ALL,