Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libc/stdlib/envlock.c')
-rw-r--r--newlib/libc/stdlib/envlock.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/newlib/libc/stdlib/envlock.c b/newlib/libc/stdlib/envlock.c
index 85bb868e4..8e55de288 100644
--- a/newlib/libc/stdlib/envlock.c
+++ b/newlib/libc/stdlib/envlock.c
@@ -9,15 +9,15 @@ INDEX
ANSI_SYNOPSIS
#include "envlock.h"
- void __env_lock (void *<[reent]>);
- void __env_unlock (void *<[reent]>);
+ void __env_lock (struct _reent *<[reent]>);
+ void __env_unlock (struct _reent *<[reent]>);
TRAD_SYNOPSIS
void __env_lock(<[reent]>)
- char *<[reent]>;
+ struct _reent *<[reent]>;
void __env_unlock(<[reent]>)
- char *<[reent]>;
+ struct _reent *<[reent]>;
DESCRIPTION
The <<setenv>> family of routines call these functions when they need
@@ -35,6 +35,9 @@ routines must be careful to avoid causing a thread to wait for a lock
that it already holds.
*/
+#include "envlock.h"
+
+
void
__env_lock (ptr)
struct _reent *ptr;