From ec806fcd26c6d18bfe78339859c0c39f9869c5d8 Mon Sep 17 00:00:00 2001 From: jjohnstn Date: Thu, 25 Mar 2004 22:20:34 +0000 Subject: [PATCH] 2004-03-25 Jeff Johnston * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already defined. Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE. * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE. --- newlib/ChangeLog | 7 +++++++ newlib/libc/sys/linux/dl/dl-support.c | 2 +- newlib/libc/sys/linux/sys/lock.h | 6 +++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 12b802b023..1c7363ec49 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,10 @@ +2004-03-25 Jeff Johnston + + * libc/sys/linux/sys/lock.h: Turn on __USE_GNU flag if not already + defined. Change __LOCK_RECURSIVE_INIT to be __LOCK_INIT_RECURSIVE. + * libc/sys/linux/dl/dl-support.c: Change __LOCK_RECURSIVE_INIT + to be __LOCK_INIT_RECURSIVE. + 2004-03-11 Kazu Hirata * libc/sys/h8300hms/Makefile.am (lib_a_SOURCES): Replace diff --git a/newlib/libc/sys/linux/dl/dl-support.c b/newlib/libc/sys/linux/dl/dl-support.c index b7cb560a63..ce53491536 100644 --- a/newlib/libc/sys/linux/dl/dl-support.c +++ b/newlib/libc/sys/linux/dl/dl-support.c @@ -112,7 +112,7 @@ hp_timing_t _dl_cpuclock_offset; This must be a recursive lock since the initializer function of the loaded object might as well require a call to this function. At this time it is not anymore a problem to modify the tables. */ -__LOCK_RECURSIVE_INIT (, _dl_load_lock) +__LOCK_INIT_RECURSIVE(, _dl_load_lock) #ifdef HAVE_AUX_VECTOR diff --git a/newlib/libc/sys/linux/sys/lock.h b/newlib/libc/sys/linux/sys/lock.h index c70c56cb1b..167392e102 100644 --- a/newlib/libc/sys/linux/sys/lock.h +++ b/newlib/libc/sys/linux/sys/lock.h @@ -7,6 +7,10 @@ #define _LIBC 1 #define NOT_IN_libc 1 +#ifndef __USE_GNU +#define __USE_GNU 1 +#endif + #include typedef __libc_lock_t _LOCK_T; @@ -14,7 +18,7 @@ typedef __libc_lock_recursive_t _LOCK_RECURSIVE_T; #define __LOCK_INIT(class,lock) \ __libc_lock_define_initialized(class, lock) -#define __LOCK_RECURSIVE_INIT(class, lock) \ +#define __LOCK_INIT_RECURSIVE(class, lock) \ __libc_lock_define_initialized_recursive(class, lock) #define __lock_init(__lock) __libc_lock_init(__lock) -- 2.11.0