forked from Mirrors/wine-wine
Don't need to reference external errno since non-reentrant Xlib is no
longer supported.oldstable
parent
019a7f3da2
commit
3944090eb9
|
@ -18,25 +18,25 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* 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
|
#include "config.h"
|
||||||
must be done before including <errno.h> makes the variables invisible. */
|
|
||||||
|
/* default errno before threading is initialized */
|
||||||
static int *default_errno_location(void)
|
static int *default_errno_location(void)
|
||||||
{
|
{
|
||||||
extern int errno;
|
static int errno;
|
||||||
return &errno;
|
return &errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* default h_errno before threading is initialized */
|
||||||
static int *default_h_errno_location(void)
|
static int *default_h_errno_location(void)
|
||||||
{
|
{
|
||||||
extern int h_errno;
|
static int h_errno;
|
||||||
return &h_errno;
|
return &h_errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
int* (*wine_errno_location)(void) = default_errno_location;
|
int* (*wine_errno_location)(void) = default_errno_location;
|
||||||
int* (*wine_h_errno_location)(void) = default_h_errno_location;
|
int* (*wine_h_errno_location)(void) = default_h_errno_location;
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* __errno_location/__error/___errno
|
* __errno_location/__error/___errno
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue