aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/errno-loc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/generic/errno-loc.c')
-rw-r--r--sysdeps/generic/errno-loc.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sysdeps/generic/errno-loc.c b/sysdeps/generic/errno-loc.c
index 46b9f173d1..43fea06a39 100644
--- a/sysdeps/generic/errno-loc.c
+++ b/sysdeps/generic/errno-loc.c
@@ -1,6 +1,6 @@
/* MT support function to get address of `errno' variable, non-threaded
version.
- Copyright (C) 1996 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1998 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -18,7 +18,8 @@
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */
-extern int errno;
+#include <errno.h>
+#undef errno
int *
weak_const_function