git-svn: trunk@3226
Nigel Horne authored on 2007/09/18 22:32:31... | ... |
@@ -1,7 +1,12 @@ |
1 |
+Tue Sep 18 13:45:34 BST 2007 (njh) |
|
2 |
+---------------------------------- |
|
3 |
+ * libclamav/regex/regcomp.c: Fix compilation error on systems without |
|
4 |
+ _POSIX2_RE_DUP_MAX (under advice from Edwin) |
|
5 |
+ |
|
1 | 6 |
Mon Sep 17 21:06:59 EEST 2007(edwin) |
2 | 7 |
------------------------------------ |
3 | 8 |
* libclamav/regex/: add regcomp(), regexec() impl. from OpenBSD's libc. |
4 |
- This code is licensed under the 3-clause BSD. |
|
9 |
+ This code is licensed under the 3-clause BSD. |
|
5 | 10 |
This will be used instead of system provided regexec()/regcomp() to |
6 | 11 |
have consistent behaviour across platforms. |
7 | 12 |
|
... | ... |
@@ -138,6 +138,12 @@ static char nuls[10]; /* place to point scanner in event of error */ |
138 | 138 |
#define THERETHERE() (p->slen - 2) |
139 | 139 |
#define DROP(n) (p->slen -= (n)) |
140 | 140 |
|
141 |
+#ifdef _POSIX2_RE_DUP_MAX |
|
142 |
+#define DUPMAX _POSIX2_RE_DUP_MAX |
|
143 |
+#else |
|
144 |
+#define DUPMAX 255 |
|
145 |
+#endif |
|
146 |
+ |
|
141 | 147 |
#ifndef NDEBUG |
142 | 148 |
static int never = 0; /* for use in asserts; shuts lint up */ |
143 | 149 |
#else |