chiark / gitweb /
pcre3 (2:8.38-3.1) unstable; urgency=medium
[pcre3.git] / debian / patches / pcreposix.patch
1 From: Mark Baker <mark@mnb.org.uk>
2 Description: Fix PCRE posix interface otherwise libc regexes are used (Bug 22525)
3
4 Index: pcre-8.30/pcreposix.h
5 ===================================================================
6 --- pcre-8.30.orig/pcreposix.h  2011-12-28 17:57:51.000000000 +0100
7 +++ pcre-8.30/pcreposix.h       2012-03-23 11:05:02.223026534 +0100
8 @@ -133,14 +133,19 @@
9  
10  /* The functions */
11  
12 -PCREPOSIX_EXP_DECL int regcomp(regex_t *, const char *, int);
13 -PCREPOSIX_EXP_DECL int regexec(const regex_t *, const char *, size_t,
14 +PCREPOSIX_EXP_DECL int pcreposix_regcomp(regex_t *, const char *, int);
15 +PCREPOSIX_EXP_DECL int pcreposix_regexec(const regex_t *, const char *, size_t,
16                       regmatch_t *, int);
17 -PCREPOSIX_EXP_DECL size_t regerror(int, const regex_t *, char *, size_t);
18 -PCREPOSIX_EXP_DECL void regfree(regex_t *);
19 +PCREPOSIX_EXP_DECL size_t pcreposix_regerror(int, const regex_t *, char *, size_t);
20 +PCREPOSIX_EXP_DECL void pcreposix_regfree(regex_t *);
21  
22  #ifdef __cplusplus
23  }   /* extern "C" */
24  #endif
25  
26 +#define regcomp pcreposix_regcomp
27 +#define regexec pcreposix_regexec
28 +#define regerror pcreposix_regerror
29 +#define regfree pcreposix_regfree
30 +
31  #endif /* End of pcreposix.h */