2011-12-06 Ralf Corsépius <ralf.corsepius@rtems.org>

* libcsupport/src/envlock.c: Build conditionally.
This commit is contained in:
Ralf Corsepius
2011-12-06 13:35:12 +00:00
parent 13760c8b16
commit 3e0a98a756
2 changed files with 9 additions and 1 deletions

View File

@@ -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.

View File

@@ -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 ... */