about summary refs log tree commit diff
path: root/posix
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2002-03-03 18:17:58 +0000
committerUlrich Drepper <drepper@redhat.com>2002-03-03 18:17:58 +0000
commit718c4bf954dd0c224a57cbff5f1b910da2236fa5 (patch)
tree9c51f954b82e3f3fdfa2c0c23ccf972402488469 /posix
parent263756c038ef879adc9ba703b44eda614ddb3a77 (diff)
downloadglibc-718c4bf954dd0c224a57cbff5f1b910da2236fa5.tar.gz
glibc-718c4bf954dd0c224a57cbff5f1b910da2236fa5.tar.xz
glibc-718c4bf954dd0c224a57cbff5f1b910da2236fa5.zip
Compatibility changes to allow using the code outside glibc.
Diffstat (limited to 'posix')
-rw-r--r--posix/regcomp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/posix/regcomp.c b/posix/regcomp.c
index 0b85f7db4b..65b44e4ddb 100644
--- a/posix/regcomp.c
+++ b/posix/regcomp.c
@@ -335,6 +335,7 @@ re_compile_fastmap_iter (bufp, init_state, fastmap)
           if (cset->non_match || cset->ncoll_syms || cset->nequiv_classes
               || cset->nranges || cset->nchar_classes)
             {
+#ifdef _LIBC
               if (_NL_CURRENT_WORD (LC_COLLATE, _NL_COLLATE_NRULES) != 0)
                 {
                   /* In this case we want to catch the bytes which are
@@ -351,6 +352,7 @@ re_compile_fastmap_iter (bufp, init_state, fastmap)
                       if (table[ch] < 0)
                         fastmap[ch] = 1;
                 }
+#endif
             }
           for (i = 0; i < cset->nmbchars; ++i)
             {
@@ -3024,10 +3026,12 @@ static void
 free_charset (re_charset_t *cset)
 {
   re_free (cset->mbchars);
+#ifdef _LIBC
   re_free (cset->coll_syms);
   re_free (cset->equiv_classes);
   re_free (cset->range_starts);
   re_free (cset->range_ends);
+#endif
   re_free (cset->char_classes);
   re_free (cset);
 }