- add mod_accel patch for amd64
Submitted by: Sergey Smitienko
This commit is contained in:
parent
41eb5baa7f
commit
1d50e56931
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=242691
2 changed files with 37 additions and 0 deletions
|
@ -238,6 +238,7 @@ CONFIGURE_ARGS+= --activate-module=src/modules/extra/mod_randban.o \
|
|||
--activate-module=src/modules/accel/libaccel.a \
|
||||
--enable-shared=accel
|
||||
EXTRA_PATCHES+= ${FILESDIR}/mod_accel-preservehost.patch ${FILESDIR}/mod_accel-Makefile.tmpl.patch
|
||||
EXTRA_PATCHES+= ${FILESDIR}/mod_accel-ap_ext_accel.patch
|
||||
PLIST_FILES+= libexec/apache/libaccel.so \
|
||||
libexec/apache/mod_freeze.so \
|
||||
libexec/apache/mod_randban.so \
|
||||
|
|
36
www/apache13-modssl/files/mod_accel-ap_ext_accel.patch
Normal file
36
www/apache13-modssl/files/mod_accel-ap_ext_accel.patch
Normal file
|
@ -0,0 +1,36 @@
|
|||
--- src/modules/accel/ap_ext_accel.h~ 2009-10-05 22:57:34.000000000 +0400
|
||||
+++ src/modules/accel/ap_ext_accel.h 2009-10-05 22:58:10.000000000 +0400
|
||||
@@ -8,10 +8,10 @@
|
||||
|
||||
|
||||
API_EXPORT_NONSTD(const char *) ap_set_integer_slot(cmd_parms *cmd,
|
||||
- char *struct_ptr, int arg);
|
||||
+ char *struct_ptr, const char * arg);
|
||||
|
||||
API_EXPORT_NONSTD(const char *) ap_set_kilobytes_slot(cmd_parms *cmd,
|
||||
- char *struct_ptr, int arg);
|
||||
+ char *struct_ptr, const char * arg);
|
||||
|
||||
#ifdef NO_SETPROCTITLE
|
||||
#define ap_setproctitle(title)
|
||||
--- src/modules/accel/ap_ext_accel.c~ 2009-10-05 22:57:33.000000000 +0400
|
||||
+++ src/modules/accel/ap_ext_accel.c 2009-10-05 22:58:32.000000000 +0400
|
||||
@@ -5,7 +5,7 @@
|
||||
#include "ap_ext_accel.h"
|
||||
|
||||
API_EXPORT_NONSTD(const char *) ap_set_integer_slot(cmd_parms *cmd,
|
||||
- char *struct_ptr, int arg)
|
||||
+ char *struct_ptr, const char* arg)
|
||||
{
|
||||
int offset = (int) (long) cmd->info;
|
||||
int size = atoi((char *)arg);
|
||||
@@ -19,7 +19,7 @@
|
||||
}
|
||||
|
||||
API_EXPORT_NONSTD(const char *) ap_set_kilobytes_slot(cmd_parms *cmd,
|
||||
- char *struct_ptr, int arg)
|
||||
+ char *struct_ptr, const char* arg)
|
||||
{
|
||||
int offset = (int) (long) cmd->info;
|
||||
int size = atoi(arg);
|
||||
|
Loading…
Reference in a new issue