summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/envlock.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libcsupport/src/envlock.c')
-rw-r--r--cpukit/libcsupport/src/envlock.c9
1 files changed, 8 insertions, 1 deletions
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 ... */