SHA256
1
0
forked from pool/Mesa
Mesa/n_force-xlocale-funcs.patch

28 lines
692 B
Diff
Raw Normal View History

From: Fabian Vogt <fvogt@suse.com>
Subject: Force use of strtod_l and friends
Patch-mainline: never
References: boo#1055929
With glibc 2.26, xlocale.h got removed, but the used functions
are available as part of local.h since POSIX2008, so use them
unconditionally.
This is necessary to fix strod with non-EN locales.
Index: mesa-17.1.6/src/util/strtod.c
===================================================================
--- mesa-17.1.6.orig/src/util/strtod.c
+++ mesa-17.1.6/src/util/strtod.c
@@ -28,11 +28,9 @@
#ifdef _GNU_SOURCE
#include <locale.h>
-#ifdef HAVE_XLOCALE_H
-#include <xlocale.h>
+#define HAVE_XLOCALE_H
static locale_t loc;
#endif
-#endif
#include "strtod.h"