From e699dda3ae84df08ab8ff073e1d056a2d03cfdd7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Fri, 6 May 2005 23:31:06 +0000 Subject: [PATCH] Include bits/libc-lock.h or define dummy __libc_lock_* macros if not _LIBC. (struct re_dfa_t): Add lock. --- posix/regex_internal.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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 #endif /* HAVE_WCTYPE_H || _LIBC */ +#if defined _LIBC +# include +#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 -- 2.7.4