diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2012-07-16 17:03:50 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2012-07-16 17:03:50 +0000 |
commit | 1acc80f5d25689ca963b84911f2b47f8eddbd0d4 (patch) | |
tree | b1a34d28b9afea5741fab20f8a4edcc74af88a8a /newlib/libc/posix | |
parent | 2fca7fa911af50f14a3df371120241129f992709 (diff) | |
download | newlib-1acc80f5d25689ca963b84911f2b47f8eddbd0d4.zip newlib-1acc80f5d25689ca963b84911f2b47f8eddbd0d4.tar.gz newlib-1acc80f5d25689ca963b84911f2b47f8eddbd0d4.tar.bz2 |
2012-07-16 Ralf Corsépius <ralf.corsepius@rtems.org>
* libc/posix/telldir.c: Conditionally build dd_hash_lock.
Diffstat (limited to 'newlib/libc/posix')
-rw-r--r-- | newlib/libc/posix/telldir.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/newlib/libc/posix/telldir.c b/newlib/libc/posix/telldir.c index f2b1c79..caac489 100644 --- a/newlib/libc/posix/telldir.c +++ b/newlib/libc/posix/telldir.c @@ -69,7 +69,10 @@ struct ddloc { static long dd_loccnt = 1; /* Index of entry for sequential readdir's */ static struct ddloc *dd_hash[NDIRHASH]; /* Hash list heads for ddlocs */ + +#ifdef HAVE_DD_LOCK __LOCK_INIT(static, dd_hash_lock); +#endif /* * return a pointer into a directory |