linux-pam: add optional libselinux and audit dependencies
[buildroot-gz.git] / package / guile / 0003-remove_unused_funcs.patch
blob3d70ee9fc9a4df92f87260201661673394e098da
1 Remove unused static inline functions str_upcase_l() and
2 str_downcase_l() that cause the compilation error:
3 'dereferencing pointer to incomplete type'.
5 Signed-off-by: Pedro Aguilar <paguilar@paguilar.org>
7 diff -Nau guile-2.0.11.orig/libguile/i18n.c guile-2.0.11/libguile/i18n.c
8 --- guile-2.0.11.orig/libguile/i18n.c 2014-01-21 22:25:11.000000000 +0100
9 +++ guile-2.0.11/libguile/i18n.c 2014-11-04 23:18:52.675435613 +0100
10 @@ -851,26 +851,6 @@
11 *dst = '\0';
14 -#ifdef USE_GNU_LOCALE_API
15 -static inline void
16 -str_upcase_l (register char *dst, register const char *src,
17 - scm_t_locale locale)
19 - for (; *src != '\0'; src++, dst++)
20 - *dst = toupper_l (*src, locale);
21 - *dst = '\0';
24 -static inline void
25 -str_downcase_l (register char *dst, register const char *src,
26 - scm_t_locale locale)
28 - for (; *src != '\0'; src++, dst++)
29 - *dst = tolower_l (*src, locale);
30 - *dst = '\0';
32 -#endif
35 SCM_DEFINE (scm_string_locale_lt, "string-locale<?", 2, 1, 0,
36 (SCM s1, SCM s2, SCM locale),