summaryrefslogtreecommitdiffstats
path: root/cpukit
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-12-06 13:35:12 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-12-06 13:35:12 +0000
commit3e0a98a756afa6d6e72f298c8a6662c18aa51b21 (patch)
treefcde360fa77f5a90737066989b0213e37b7f5491 /cpukit
parent2011-12-06 Petr Benes <benesp16@fel.cvut.cz> (diff)
downloadrtems-3e0a98a756afa6d6e72f298c8a6662c18aa51b21.tar.bz2
2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
* libcsupport/src/envlock.c: Build conditionally.
Diffstat (limited to 'cpukit')
-rw-r--r--cpukit/ChangeLog1
-rw-r--r--cpukit/libcsupport/src/envlock.c9
2 files changed, 9 insertions, 1 deletions
diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog
index 8d38deb652..0d193e388e 100644
--- a/cpukit/ChangeLog
+++ b/cpukit/ChangeLog
@@ -1,5 +1,6 @@
2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * libcsupport/src/envlock.c: Build conditionally.
* configure.ac: Check for envlock.h.
Check for decls of __env_lock, __env_unlock.
diff --git a/cpukit/libcsupport/src/envlock.c b/cpukit/libcsupport/src/envlock.c
index 667f6052d4..3fe626d154 100644
--- a/cpukit/libcsupport/src/envlock.c
+++ b/cpukit/libcsupport/src/envlock.c
@@ -10,6 +10,11 @@
#include "config.h"
#endif
+#if defined(HAVE_ENVLOCK_H) \
+ && defined(HAVE_DECL___ENV_LOCK) && defined(HAVE_DECL___ENV_UNLOCK)
+
+#include <envlock.h>
+
#include <rtems.h>
#include <sys/reent.h>
@@ -105,4 +110,6 @@ __env_unlock(struct _reent *r __attribute__((unused)))
{
rtems_libio_unlock();
}
-#endif
+#endif /* ENVLOCK_DEDICATED_MUTEX */
+
+#endif /* HAVE_ENVLOCK_H ... */