Mesa/n_force-xlocale-funcs.patch
Stefan Dirsch e52ee1c853 Accepting request 519140 from home:favogt:branches:X11:XOrg
Please forward and submit also to openSUSE:Factory:Update.

- Add patch to fix strtod on non-EN locale (boo#1055929):
  * n_force-xlocale-funcs.patch

OBS-URL: https://build.opensuse.org/request/show/519140
OBS-URL: https://build.opensuse.org/package/show/X11:XOrg/Mesa?expand=0&rev=640
2017-08-28 14:50:41 +00:00

28 lines
692 B
Diff

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"