From 3944090eb97c6282135795b930f6d8850cfc9ecb Mon Sep 17 00:00:00 2001 From: Alexandre Julliard Date: Wed, 8 May 2002 00:41:43 +0000 Subject: [PATCH] Don't need to reference external errno since non-reentrant Xlib is no longer supported. --- library/errno.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/library/errno.c b/library/errno.c index 21d4735e8e8..bd67b97ea51 100644 --- a/library/errno.c +++ b/library/errno.c @@ -18,25 +18,25 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* Get pointers to the static errno and h_errno variables used by Xlib. This - must be done before including makes the variables invisible. */ +#include "config.h" + +/* default errno before threading is initialized */ static int *default_errno_location(void) { - extern int errno; + static int errno; return &errno; } +/* default h_errno before threading is initialized */ static int *default_h_errno_location(void) { - extern int h_errno; + static int h_errno; return &h_errno; } int* (*wine_errno_location)(void) = default_errno_location; int* (*wine_h_errno_location)(void) = default_h_errno_location; -#include "config.h" - /*********************************************************************** * __errno_location/__error/___errno *