summaryrefslogtreecommitdiff
path: root/newlib/libc/stdlib/envlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/envlock.h')
-rw-r--r--newlib/libc/stdlib/envlock.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/newlib/libc/stdlib/envlock.h b/newlib/libc/stdlib/envlock.h
new file mode 100644
index 00000000000..df3a0ba5854
--- /dev/null
+++ b/newlib/libc/stdlib/envlock.h
@@ -0,0 +1,12 @@
+/* envlock.h -- header file for env routines. */
+
+#ifndef _INCLUDE_ENVLOCK_H_
+#define _INCLUDE_ENVLOCK_H_
+
+#include <_ansi.h>
+#include <sys/reent.h>
+
+#define ENV_LOCK __env_lock(reent_ptr)
+#define ENV_UNLOCK __env_unlock(reent_ptr)
+
+#endif /* _INCLUDE_ENVLOCK_H_ */