aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2009-03-09 20:43:01 +0000
committerMartin Wilke <miwi@FreeBSD.org>2009-03-09 20:43:01 +0000
commitbe4df3b3994ca7c29847b8b37a28c51f6e414c25 (patch)
treeb8f8cdb14862b71f3a6e8a0920c9b6a52a45acef
parent97ec589da0cfa545300b989c16c1e1dc07a9851c (diff)
Notes
-rw-r--r--devel/librcc/files/patch-src-rccstring.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/librcc/files/patch-src-rccstring.h b/devel/librcc/files/patch-src-rccstring.h
new file mode 100644
index 000000000000..791e1008ad0a
--- /dev/null
+++ b/devel/librcc/files/patch-src-rccstring.h
@@ -0,0 +1,15 @@
+--- src/rccstring.h.orig 2009-03-09 13:59:14.000000000 +0100
++++ src/rccstring.h 2009-03-09 13:59:20.000000000 +0100
+@@ -18,11 +18,7 @@
+ int rccStringFixID(rcc_string string, rcc_context ctx);
+ int rccStringChangeID(rcc_string string, rcc_language_id language_id);
+
+-#ifdef HAVE_STRNLEN
+-# ifndef strnlen
+-int strnlen(const char *str, size_t size);
+-# endif /* !strnlen */
+-#else
++#ifndef HAVE_STRNLEN
+ int rccStrnlen(const char *str, size_t size);
+ #endif /* HAVE_STRNLEN */
+ int rccIsASCII(const char *str);