ARCH_HAS_MMU=y
UCLIBC_HAS_FLOATS=y
HAS_FPU=y
-DO_C99_MATH=y
+# DO_C99_MATH is not set
WARNINGS="-Wall"
KERNEL_SOURCE="./toolchain_build_mipsel/linux"
C_SYMBOL_PREFIX=""
--- /dev/null
+diff -urN uClibc-0.9.27.old/ldso/include/ldso.h uClibc-0.9.27.dev/ldso/include/ldso.h
+--- uClibc-0.9.27.old/ldso/include/ldso.h 2005-01-12 08:59:21.000000000 +0100
++++ uClibc-0.9.27.dev/ldso/include/ldso.h 2005-04-29 17:44:05.000000000 +0200
+@@ -42,8 +42,6 @@
+ extern char *_dl_preload; /* Things to be loaded before the libs */
+ extern char *_dl_ldsopath; /* Where the shared lib loader was found */
+ extern const char *_dl_progname; /* The name of the executable being run */
+-extern unsigned char *_dl_malloc_addr; /* Lets _dl_malloc use the already allocated memory page */
+-extern unsigned char *_dl_mmap_zero; /* Also used by _dl_malloc */
+ extern int _dl_secure; /* Are we dealing with setuid stuff? */
+ extern size_t _dl_pagesize; /* Store the page size for use later */
+ extern const char *_dl_progname; /* The name of the shared library loader */
+diff -urN uClibc-0.9.27.old/libc/stdlib/malloc-standard/free.c uClibc-0.9.27.dev/libc/stdlib/malloc-standard/free.c
+--- uClibc-0.9.27.old/libc/stdlib/malloc-standard/free.c 2005-01-12 08:59:21.000000000 +0100
++++ uClibc-0.9.27.dev/libc/stdlib/malloc-standard/free.c 2005-04-29 17:46:43.000000000 +0200
+@@ -16,6 +16,7 @@
+
+ #include "malloc.h"
+
++static int __malloc_trim(size_t pad, mstate av);
+
+ /* ------------------------- malloc_trim -------------------------
+ malloc_trim(size_t pad);
--- /dev/null
+diff -urN uClibc-0.9.27.old/libc/inet/resolv.c uClibc-0.9.27/libc/inet/resolv.c
+--- uClibc-0.9.27.old/libc/inet/resolv.c 2005-01-12 08:59:21.000000000 +0100
++++ uClibc-0.9.27/libc/inet/resolv.c 2005-04-04 22:14:38.000000000 +0200
+@@ -2029,7 +2029,7 @@
+ int old_errno = errno; /* Save the old errno and reset errno */
+ __set_errno(0); /* to check for missing /etc/hosts. */
+
+- if ((i=__get_hosts_byname_r(name, AF_INET, result_buf,
++ if ((i=__get_hosts_byname_r(name, AF_INET6, result_buf,
+ buf, buflen, result, h_errnop))==0)
+ return i;
+ switch (*h_errnop) {
+diff -urN uClibc-0.9.27.old/libc/inet/resolv.c uClibc-0.9.27/libc/inet/resolv.c
+--- uClibc-0.9.27.old/libc/inet/resolv.c 2005-04-04 22:16:54.000000000 +0200
++++ uClibc-0.9.27/libc/inet/resolv.c 2005-04-04 22:46:59.000000000 +0200
+@@ -1513,7 +1513,7 @@
+ } else {
+ DPRINTF("Error\n");
+ ret=TRY_AGAIN;
+- break; /* bad ip address */
++ continue; /* bad ip address, ignore */
+ }
+
+ if (action!=GETHOSTENT) {
--- /dev/null
+--- uClibc.old/libm/Makefile 2005-01-12 08:59:21.000000000 +0100
++++ uClibc.dev/libm/Makefile 2005-11-07 17:24:37.155983750 +0100
+@@ -78,6 +78,8 @@
+ s_finite.c
+ # We'll add sqrtf to avoid different configurations of libstdc++.
+ CSRC+= w_sqrtf.c
++# extra stuff required for some apps
++CSRC+= fpmacros.c nan.c s_rint.c e_hypot.c w_hypot.c
+ endif
+ COBJS=$(patsubst %.c,%.o, $(CSRC))
+ OBJS=$(COBJS)
+++ /dev/null
-diff -urN uClibc-0.9.27.old/ldso/include/ldso.h uClibc-0.9.27.dev/ldso/include/ldso.h
---- uClibc-0.9.27.old/ldso/include/ldso.h 2005-01-12 08:59:21.000000000 +0100
-+++ uClibc-0.9.27.dev/ldso/include/ldso.h 2005-04-29 17:44:05.000000000 +0200
-@@ -42,8 +42,6 @@
- extern char *_dl_preload; /* Things to be loaded before the libs */
- extern char *_dl_ldsopath; /* Where the shared lib loader was found */
- extern const char *_dl_progname; /* The name of the executable being run */
--extern unsigned char *_dl_malloc_addr; /* Lets _dl_malloc use the already allocated memory page */
--extern unsigned char *_dl_mmap_zero; /* Also used by _dl_malloc */
- extern int _dl_secure; /* Are we dealing with setuid stuff? */
- extern size_t _dl_pagesize; /* Store the page size for use later */
- extern const char *_dl_progname; /* The name of the shared library loader */
-diff -urN uClibc-0.9.27.old/libc/stdlib/malloc-standard/free.c uClibc-0.9.27.dev/libc/stdlib/malloc-standard/free.c
---- uClibc-0.9.27.old/libc/stdlib/malloc-standard/free.c 2005-01-12 08:59:21.000000000 +0100
-+++ uClibc-0.9.27.dev/libc/stdlib/malloc-standard/free.c 2005-04-29 17:46:43.000000000 +0200
-@@ -16,6 +16,7 @@
-
- #include "malloc.h"
-
-+static int __malloc_trim(size_t pad, mstate av);
-
- /* ------------------------- malloc_trim -------------------------
- malloc_trim(size_t pad);
+++ /dev/null
-diff -urN uClibc-0.9.27.old/libc/inet/resolv.c uClibc-0.9.27/libc/inet/resolv.c
---- uClibc-0.9.27.old/libc/inet/resolv.c 2005-01-12 08:59:21.000000000 +0100
-+++ uClibc-0.9.27/libc/inet/resolv.c 2005-04-04 22:14:38.000000000 +0200
-@@ -2029,7 +2029,7 @@
- int old_errno = errno; /* Save the old errno and reset errno */
- __set_errno(0); /* to check for missing /etc/hosts. */
-
-- if ((i=__get_hosts_byname_r(name, AF_INET, result_buf,
-+ if ((i=__get_hosts_byname_r(name, AF_INET6, result_buf,
- buf, buflen, result, h_errnop))==0)
- return i;
- switch (*h_errnop) {
-diff -urN uClibc-0.9.27.old/libc/inet/resolv.c uClibc-0.9.27/libc/inet/resolv.c
---- uClibc-0.9.27.old/libc/inet/resolv.c 2005-04-04 22:16:54.000000000 +0200
-+++ uClibc-0.9.27/libc/inet/resolv.c 2005-04-04 22:46:59.000000000 +0200
-@@ -1513,7 +1513,7 @@
- } else {
- DPRINTF("Error\n");
- ret=TRY_AGAIN;
-- break; /* bad ip address */
-+ continue; /* bad ip address, ignore */
- }
-
- if (action!=GETHOSTENT) {