[PATCH] D13944: [plot2fig] Use the POSIX regex functions on Linux instead of the old/obsolete BSD ones.
Vasileios Kalintiris via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 21 06:48:23 PDT 2015
vkalintiris created this revision.
vkalintiris added a subscriber: llvm-commits.
Use regcmp() and regex() instead of re_comp() and re_exec(). This fixes
the build failure when using the Musl C library.
http://reviews.llvm.org/D13944
Files:
MultiSource/Benchmarks/Prolangs-C/plot2fig/fontname.c
Index: MultiSource/Benchmarks/Prolangs-C/plot2fig/fontname.c
===================================================================
--- MultiSource/Benchmarks/Prolangs-C/plot2fig/fontname.c
+++ MultiSource/Benchmarks/Prolangs-C/plot2fig/fontname.c
@@ -47,7 +47,7 @@
int font_id = 0; /* the default font */
-#ifdef SOLARIS
+#if defined(SOLARIS) || defined(__linux__)
/* XZ: use regcmp() and regex() instead of re_comp() and re_exec() */
/* PAS (6/3/96): use regcomp() and regexec() from regex.h instead of
re_comp() and re_exec() on the understanding that it only has to
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D13944.38009.patch
Type: text/x-patch
Size: 576 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20151021/6d3abc28/attachment.bin>
More information about the llvm-commits
mailing list