strtol.c broken
Andreas Jaeger
aj@suse.de
Fri Jan 26 05:23:00 GMT 2001
With current CVS compilation of glibc is broken:
In file included from ../sysdeps/generic/strtol_l.c:28:
../sysdeps/generic/strtol.c: In function `____strtol_l_internal':
../sysdeps/generic/strtol.c:252: `LC_NUMERIC' undeclared (first use in this function)
../sysdeps/generic/strtol.c:252: (Each undeclared identifier is reported only once
../sysdeps/generic/strtol.c:252: for each function it appears in.)
I've committed the appended patch,
Andreas
2001-01-26 Andreas Jaeger <aj@suse.de>
* sysdeps/generic/strtol.c: Include <locale.h>
* stdlib/strtod.c: Likewise
============================================================
Index: sysdeps/generic/strtol.c
--- sysdeps/generic/strtol.c 2001/01/02 17:01:27 1.5
+++ sysdeps/generic/strtol.c 2001/01/26 13:19:14
@@ -44,6 +44,7 @@
# include <stddef.h>
# include <stdlib.h>
# include <string.h>
+# include <locale.h>
#else
# ifndef NULL
# define NULL 0
============================================================
Index: stdlib/strtod.c
--- stdlib/strtod.c 2001/01/24 22:10:30 1.62
+++ stdlib/strtod.c 2001/01/26 13:19:16
@@ -56,6 +56,7 @@
#include <float.h>
#include <ieee754.h>
#include "../locale/localeinfo.h"
+#include <locale.h>
#include <math.h>
#include <stdlib.h>
#include <string.h>
--
Andreas Jaeger
SuSE Labs aj@suse.de
private aj@arthur.inka.de
http://www.suse.de/~aj
More information about the Libc-hacker
mailing list