summaryrefslogtreecommitdiff
path: root/libc/misc/regex/regcomp.c
diff options
context:
space:
mode:
authorPeter S. Mazinger <ps.m@gmx.net>2006-03-22 15:49:22 +0000
committerPeter S. Mazinger <ps.m@gmx.net>2006-03-22 15:49:22 +0000
commit55b24e4e95a715b451507f2790d292fa8b1c2c1c (patch)
treeae6464b93a9b660617b9f7a569276945294dcce7 /libc/misc/regex/regcomp.c
parent86ea254301f7e2fcd860c4072c0a938b4e048d42 (diff)
Mark some functions as GNU, provide missing hidden memmem, remove _ISOC99/XOPEN_SOURCE
Diffstat (limited to 'libc/misc/regex/regcomp.c')
-rw-r--r--libc/misc/regex/regcomp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/misc/regex/regcomp.c b/libc/misc/regex/regcomp.c
index 94e0314b5..471ea55f0 100644
--- a/libc/misc/regex/regcomp.c
+++ b/libc/misc/regex/regcomp.c
@@ -532,7 +532,7 @@ regerror (errcode, preg, errbuf, errbuf_size)
{
if (BE (msg_size > errbuf_size, 0))
{
-#if defined HAVE_MEMPCPY || defined _LIBC
+#if (defined HAVE_MEMPCPY || defined _LIBC) && defined __USE_GNU
*((char *) __mempcpy (errbuf, msg, errbuf_size - 1)) = '\0';
#else
memcpy (errbuf, msg, errbuf_size - 1);