summaryrefslogtreecommitdiffstats
path: root/app-i18n/librcc/files
diff options
context:
space:
mode:
Diffstat (limited to 'app-i18n/librcc/files')
-rw-r--r--app-i18n/librcc/files/librcc-strnlen.patch11
-rw-r--r--app-i18n/librcc/files/rcc-debug.patch14
2 files changed, 25 insertions, 0 deletions
diff --git a/app-i18n/librcc/files/librcc-strnlen.patch b/app-i18n/librcc/files/librcc-strnlen.patch
new file mode 100644
index 0000000..5c2cec7
--- /dev/null
+++ b/app-i18n/librcc/files/librcc-strnlen.patch
@@ -0,0 +1,11 @@
+--- orig/src/rccstring.h
++++ mod/src/rccstring.h
+@@ -40,7 +40,7 @@
+
+ #ifdef HAVE_STRNLEN
+ # ifndef strnlen
+-int strnlen(const char *str, size_t size);
++size_t strnlen(const char *str, size_t size);
+ # endif /* !strnlen */
+ #else
+ int rccStrnlen(const char *str, size_t size);
diff --git a/app-i18n/librcc/files/rcc-debug.patch b/app-i18n/librcc/files/rcc-debug.patch
new file mode 100644
index 0000000..7f92d2c
--- /dev/null
+++ b/app-i18n/librcc/files/rcc-debug.patch
@@ -0,0 +1,14 @@
+diff -dPNur librcc--main--0.1--patch-34/src/rccconfig.h librcc--main--0.1--patch-34-debug/src/rccconfig.h
+--- librcc--main--0.1--patch-34/src/rccconfig.h 2006-01-08 19:43:06.000000000 +0400
++++ librcc--main--0.1--patch-34-debug/src/rccconfig.h 2006-07-18 20:15:12.000000000 +0500
+@@ -3,8 +3,8 @@
+ #include "librcc.h"
+ #include "opt.h"
+
+-#undef RCC_DEBUG
+-#undef RCC_DEBUG_LANGDETECT
++#define RCC_DEBUG
++#define RCC_DEBUG_LANGDETECT 2
+ #define RCC_LOCALE_VARIABLE "LC_CTYPE"
+
+ extern const char rcc_default_all[];