summaryrefslogtreecommitdiff
path: root/www/mod_vhs/files/patch-mod_vhs.c
blob: 3cb800f50b2c85bd40bc4df7e20ae3b33574ec0b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
--- ./mod_vhs.c.orig	2010-06-03 00:47:05.980134731 -0400
+++ ./mod_vhs.c	2010-06-03 00:48:23.301960660 -0400
@@ -216,16 +216,7 @@
 	const char     *real;
 	const char     *fake;
 	char           *handler;
-
-#if APR_MAJOR_VERSION > 0
-	ap_regex_t     *regexp;
-#else
-#ifdef DEBIAN
 	ap_regex_t     *regexp;
-#else
-	regex_t        *regexp;
-#endif				/* DEBIAN */
-#endif
 	int		redir_status;	/* 301, 302, 303, 410, etc... */
 }		alias_entry;
 
@@ -334,11 +325,7 @@
 	/* XX r can NOT be relative to DocumentRoot here... compat bug. */
 
 	if (use_regex) {
-#ifdef DEBIAN
 		new->regexp = ap_pregcomp(cmd->pool, f, AP_REG_EXTENDED);
-#else
-		new->regexp = ap_pregcomp(cmd->pool, f, REG_EXTENDED);
-#endif /* DEBIAN */
 		if (new->regexp == NULL)
 			return "Regular expression could not be compiled.";
 		new->real = r;
@@ -403,15 +390,7 @@
 	vhs_config_rec *serverconf = ap_get_module_config(s->module_config,
 							  &vhs_module);
 	int		status = (int)(long)cmd->info;
-#if APR_MAJOR_VERSION > 0
 	ap_regex_t     *r = NULL;
-#else
-#ifdef DEBIAN
-	ap_regex_t     *r = NULL;
-#else
-	regex_t        *r = NULL;
-#endif				/* DEBIAN */
-#endif
 	const char     *f = arg2;
 	const char     *url = arg3;
 
@@ -431,11 +410,7 @@
 	}
 
 	if (use_regex) {
-#ifdef DEBIAN
 		r = ap_pregcomp(cmd->pool, f, AP_REG_EXTENDED);
-#else
-		r = ap_pregcomp(cmd->pool, f, REG_EXTENDED);
-#endif /* DEBIAN */
 		if (r == NULL)
 			return "Regular expression could not be compiled.";
 	}
@@ -531,11 +506,7 @@
 	       int doesc, int *status)
 {
 	alias_entry    *entries = (alias_entry *) aliases->elts;
-#ifdef DEBIAN
 	ap_regmatch_t	regm [AP_MAX_REG_MATCH];
-#else
-	regmatch_t	regm [AP_MAX_REG_MATCH];
-#endif  /* DEBIAN */
 	char           *found = NULL;
 	int		i;