This is the mail archive of the libc-hacker@sourceware.cygnus.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] |
Here is the patch I found out while working on ia64. -- H.J. Lu (hjl@gnu.org) --- Thu Jul 29 14:15:11 1999 H.J. Lu <hjl@gnu.org> * stdlib/mbtowc.c: Include <string.h>. * stdlib/wctomb.c: Likewise. * sysdeps/unix/sysv/linux/fstatfs64.c: Likewise. * sysdeps/unix/sysv/linux/statfs64.c: Likewise. * iconv/gconv_open.c: Likewise. * misc/mntent_r.c: Include <alloca.h>. * elf/dl-runtime.c: Likewise. * misc/qefgcvt.c: Handle LDBL_MANT_DIG == DBL_MANT_DIG. * misc/qefgcvt_r.c: Likewise. * Makeconfig (CPPFLAGS-.os): Add -DSHARED. --- /work/gnu/import/glibc-2.1/libc/stdlib/mbtowc.c Wed Jul 28 16:15:03 1999 +++ stdlib/mbtowc.c Thu Jul 29 13:03:29 1999 @@ -19,6 +19,7 @@ #include <stdlib.h> #include <wchar.h> #include <gconv.h> +#include <string.h> #include <wcsmbs/wcsmbsload.h> --- /work/gnu/import/glibc-2.1/libc/stdlib/wctomb.c Wed Jul 28 16:15:03 1999 +++ stdlib/wctomb.c Thu Jul 29 13:03:53 1999 @@ -17,6 +17,7 @@ Boston, MA 02111-1307, USA. */ #include <stdlib.h> +#include <string.h> #include <wchar.h> #include <gconv.h> #include <wcsmbs/wcsmbsload.h> --- /work/gnu/import/glibc-2.1/libc/sysdeps/unix/sysv/linux/fstatfs64.c Sat Dec 26 17:33:38 1998 +++ sysdeps/unix/sysv/linux/fstatfs64.c Thu Jul 29 13:10:59 1999 @@ -20,6 +20,7 @@ #include <errno.h> #include <sys/statfs.h> #include <stddef.h> +#include <string.h> /* Return information about the filesystem on which FD resides. */ int --- /work/gnu/import/glibc-2.1/libc/sysdeps/unix/sysv/linux/statfs64.c Sat Dec 26 17:33:38 1998 +++ sysdeps/unix/sysv/linux/statfs64.c Thu Jul 29 13:11:04 1999 @@ -20,6 +20,7 @@ #include <errno.h> #include <sys/statfs.h> #include <stddef.h> +#include <string.h> /* Return information about the filesystem on which FILE resides. */ int --- /work/gnu/import/glibc-2.1/libc/iconv/gconv_open.c Wed Apr 28 14:42:24 1999 +++ iconv/gconv_open.c Thu Jul 29 14:19:01 1999 @@ -20,6 +20,7 @@ #include <errno.h> #include <stdlib.h> +#include <string.h> #include <gconv_int.h> --- /work/gnu/import/glibc-2.1/libc/misc/mntent_r.c Wed Jul 28 09:28:26 1999 +++ misc/mntent_r.c Thu Jul 29 13:04:57 1999 @@ -20,6 +20,7 @@ #include <mntent.h> #include <stdio.h> #include <string.h> +#include <alloca.h> #include <sys/types.h> #ifdef USE_IN_LIBIO --- /work/gnu/import/glibc-2.1/libc/elf/dl-runtime.c Thu Jul 15 15:36:44 1999 +++ elf/dl-runtime.c Thu Jul 29 14:22:07 1999 @@ -18,6 +18,7 @@ Boston, MA 02111-1307, USA. */ #include <unistd.h> +#include <alloca.h> #include <elf/ldsodefs.h> #include "dynamic-link.h" --- /work/gnu/import/glibc-2.1/libc/misc/qefgcvt.c Wed Jul 28 16:15:03 1999 +++ misc/qefgcvt.c Thu Jul 29 13:58:02 1999 @@ -19,6 +19,7 @@ #include <float.h> +#if LDBL_MANT_DIG != DBL_MANT_DIG #define FLOAT_TYPE long double #define FUNC_PREFIX q #define FLOAT_FMT_FLAG "L" @@ -34,3 +35,36 @@ #endif #include "efgcvt.c" +#else +#include <stdlib.h> + +char * +qfcvt (value, ndigit, decpt, sign) + long double value; + int ndigit; + int *decpt; + int *sign; +{ + return fcvt (value, ndigit, decpt, sign); +} + + +char * +qecvt (value, ndigit, decpt, sign) + long double value; + int ndigit; + int *decpt; + int *sign; +{ + return ecvt (value, ndigit, decpt, sign); +} + +char * +qgcvt (value, ndigit, buf) + long double value; + int ndigit; + char *buf; +{ + return gcvt (value, ndigit, buf); +} +#endif --- /work/gnu/import/glibc-2.1/libc/misc/qefgcvt_r.c Wed Jul 28 16:15:03 1999 +++ misc/qefgcvt_r.c Thu Jul 29 13:58:12 1999 @@ -20,6 +20,7 @@ #include <float.h> +#if LDBL_MANT_DIG != DBL_MANT_DIG #define FLOAT_TYPE long double #define FUNC_PREFIX q #define FLOAT_FMT_FLAG "L" @@ -32,3 +33,30 @@ #endif #include "efgcvt_r.c" +#else +#include <stdlib.h> + +int +qfcvt_r (value, ndigit, decpt, sign, buf, len) + long double value; + int ndigit; + int *decpt; + int *sign; + char *buf; + size_t len; +{ + return fcvt_r (value, ndigit, decpt, sign, buf, len); +} + +int +qecvt_r (value, ndigit, decpt, sign, buf, len) + long double value; + int ndigit; + int *decpt; + int *sign; + char *buf; + size_t len; +{ + return ecvt_r (value, ndigit, decpt, sign, buf, len); +} +#endif --- /work/gnu/import/glibc-2.1/libc/Makeconfig Sun Jun 13 10:12:32 1999 +++ Makeconfig Thu Jul 29 12:04:08 1999 @@ -598,7 +598,7 @@ ifeq (yes,$(build-shared)) # Under --enable-shared, we will build a shared library of PIC objects. # The PIC object files are named foo.os. object-suffixes += .os -CPPFLAGS-.os = -DPIC +CPPFLAGS-.os = -DPIC -DSHARED CFLAGS-.os = $(filter %frame-pointer,$(+cflags)) $(pic-ccflag) libtype.os := lib%_pic.a # This can be changed by a sysdep makefile
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |