diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-05-06 23:31:06 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-05-06 23:31:06 +0000 |
commit | e699dda3ae84df08ab8ff073e1d056a2d03cfdd7 (patch) | |
tree | c1c813e84e21da424fb6e5c70c18cc59953d3fb9 | |
parent | ca3477e65086e89d021c747796f4781b2e7a0dc6 (diff) | |
download | glibc-e699dda3ae84df08ab8ff073e1d056a2d03cfdd7.zip glibc-e699dda3ae84df08ab8ff073e1d056a2d03cfdd7.tar.gz glibc-e699dda3ae84df08ab8ff073e1d056a2d03cfdd7.tar.bz2 |
Include bits/libc-lock.h or define dummy __libc_lock_* macros if not _LIBC. (struct re_dfa_t): Add lock.
-rw-r--r-- | posix/regex_internal.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/posix/regex_internal.h b/posix/regex_internal.h index 58fa749..6db3844 100644 --- a/posix/regex_internal.h +++ b/posix/regex_internal.h @@ -39,6 +39,14 @@ #if defined HAVE_WCTYPE_H || defined _LIBC # include <wctype.h> #endif /* HAVE_WCTYPE_H || _LIBC */ +#if defined _LIBC +# include <bits/libc-lock.h> +#else +# define __libc_lock_define(CLASS,NAME) +# define __libc_lock_init(NAME) do { } while (0) +# define __libc_lock_lock(NAME) do { } while (0) +# define __libc_lock_unlock(NAME) do { } while (0) +#endif /* In case that the system doesn't have isblank(). */ #if !defined _LIBC && !defined HAVE_ISBLANK && !defined isblank @@ -647,6 +655,7 @@ struct re_dfa_t #ifdef DEBUG char* re_str; #endif + __libc_lock_define (, lock) }; #ifndef RE_NO_INTERNAL_PROTOTYPES |