This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

strtol.c broken



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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]