updated on Sat Jan 21 20:03:50 UTC 2012
[aur-mirror.git] / apache13-mod_accounting / build.patch
blob87c261876bd329804515b06a618c78b6850e29ac
1 diff -wbBur mod_accounting-0.5/Makefile mod_accounting-0.5.my/Makefile
2 --- mod_accounting-0.5/Makefile 2001-12-30 17:11:43 +0300
3 +++ mod_accounting-0.5.my/Makefile 2006-04-10 13:22:00 +0400
4 @@ -5,13 +5,14 @@
5 ##
7 # the used tools
8 -APXS=apxs
9 -APACHECTL=apachectl
10 +APXS=apxs13
11 +APACHECTL=apachectl13
13 # here's what you may need to change
14 -DEF=-DNEED_POSTGRES -DNEED_MYSQL
15 -INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/
16 -LIB=-L/usr/local/pgsql/lib -lpq -L/usr/local/mysql/lib/mysql/ -lmysqlclient
17 +DEF=-DNEED_MYSQL
18 +#INC=-I/usr/local/pgsql/include/ -I/usr/local/mysql/include/
19 +#LIB=-L/usr/local/mysql/lib/mysql/ -lmysqlclient
20 +LIB=-lmysqlclient
22 # the default target
23 all: mod_accounting.so
24 diff -wbBur mod_accounting-0.5/mod_accounting.c mod_accounting-0.5.my/mod_accounting.c
25 --- mod_accounting-0.5/mod_accounting.c 2002-09-08 19:17:22 +0400
26 +++ mod_accounting-0.5.my/mod_accounting.c 2006-04-10 13:29:27 +0400
27 @@ -218,8 +218,10 @@
28 char *ptr = arg;
30 while( *ptr )
31 - *ptr++ = tolower( *ptr );
33 + {
34 + *ptr = tolower( *ptr );
35 + *ptr++;
36 + }
37 // let's see if we have the requested driver
38 for( i = 0; i < DB_MAX; i++ )
39 if( !strcmp( DBDrivers[ i ].ID, arg )) {