Page MenuHomeFreeBSD

D31050.id.diff
No OneTemporary

D31050.id.diff

diff --git a/contrib/nvi/regex/regex.h b/contrib/nvi/regex/regex.h
--- a/contrib/nvi/regex/regex.h
+++ b/contrib/nvi/regex/regex.h
@@ -96,6 +96,16 @@
#define REG_LARGE 01000 /* force large representation */
#define REG_BACKR 02000 /* force use of backref code */
+#ifdef USE_WIDECHAR
+/*
+ * Avoid function name conflicts with the system regex functions.
+ * This is needed e.g. to build with AddressSanitizer.
+ */
+#define regcomp nvi_regcomp
+#define regerror nvi_regerror
+#define regexec nvi_regexec
+#define regfree nvi_regfree
+#endif
int regcomp(regex_t *, const RCHAR_T *, int);
size_t regerror(int, const regex_t *, char *, size_t);
int regexec(const regex_t *,

File Metadata

Mime Type
text/plain
Expires
Sun, Apr 12, 9:44 PM (6 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31373689
Default Alt Text
D31050.id.diff (680 B)

Event Timeline