Include bits/libc-lock.h or define dummy __libc_lock_* macros if not _LIBC. (struct re_dfa_t): Add lock.
This commit is contained in:
parent
ca3477e650
commit
e699dda3ae
@ -39,6 +39,14 @@
|
|||||||
#if defined HAVE_WCTYPE_H || defined _LIBC
|
#if defined HAVE_WCTYPE_H || defined _LIBC
|
||||||
# include <wctype.h>
|
# include <wctype.h>
|
||||||
#endif /* HAVE_WCTYPE_H || _LIBC */
|
#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(). */
|
/* In case that the system doesn't have isblank(). */
|
||||||
#if !defined _LIBC && !defined HAVE_ISBLANK && !defined isblank
|
#if !defined _LIBC && !defined HAVE_ISBLANK && !defined isblank
|
||||||
@ -647,6 +655,7 @@ struct re_dfa_t
|
|||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
char* re_str;
|
char* re_str;
|
||||||
#endif
|
#endif
|
||||||
|
__libc_lock_define (, lock)
|
||||||
};
|
};
|
||||||
|
|
||||||
#ifndef RE_NO_INTERNAL_PROTOTYPES
|
#ifndef RE_NO_INTERNAL_PROTOTYPES
|
||||||
|
Loading…
x
Reference in New Issue
Block a user