diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2004-03-25 22:20:36 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2004-03-25 22:20:36 +0000 |
commit | ec475b0967c5f3c2e4a81c045670c9579a76218d (patch) | |
tree | b9a263b81e88396105f7f2dd661dbfa6e6cd589a /newlib/libc/sys | |
parent | b0a9d0fcc91324c9f98834398dafb67907c78836 (diff) | |
download | cygnal-ec475b0967c5f3c2e4a81c045670c9579a76218d.tar.gz cygnal-ec475b0967c5f3c2e4a81c045670c9579a76218d.tar.bz2 cygnal-ec475b0967c5f3c2e4a81c045670c9579a76218d.zip |
2004-03-25 Jeff Johnston <jjohnstn@redhat.com>
* 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.
Diffstat (limited to 'newlib/libc/sys')
-rw-r--r-- | newlib/libc/sys/linux/dl/dl-support.c | 2 | ||||
-rw-r--r-- | newlib/libc/sys/linux/sys/lock.h | 6 |
2 files changed, 6 insertions, 2 deletions
diff --git a/newlib/libc/sys/linux/dl/dl-support.c b/newlib/libc/sys/linux/dl/dl-support.c index b7cb560a6..ce5349153 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 c70c56cb1..167392e10 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 <bits/libc-lock.h> 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) |