summaryrefslogtreecommitdiff
path: root/toolchain/glibc/patches
diff options
context:
space:
mode:
authorPhil Sutter <phil.sutter@viprinet.com>2011-04-18 17:41:16 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-04-26 10:46:06 +0200
commit5362582e05dab4ab401cc83d41da48aa574f3fc1 (patch)
treed706e23019a170163294d8981307c363eb17cabb /toolchain/glibc/patches
parent6520531e3374531c8b4115e2e84cef63b2ceb34a (diff)
glibc: fixup name resolution for kirkwood at least
Diffstat (limited to 'toolchain/glibc/patches')
-rw-r--r--toolchain/glibc/patches/getpagesize.patch14
1 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/glibc/patches/getpagesize.patch b/toolchain/glibc/patches/getpagesize.patch
new file mode 100644
index 000000000..de9b73213
--- /dev/null
+++ b/toolchain/glibc/patches/getpagesize.patch
@@ -0,0 +1,14 @@
+ This patch is needed at least on kirkwood. Otherwise DNS-lookups will fail, since
+ GLRO(dl_pagesize) is zero. Solution taken from this resource:
+ http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg228455.html
+--- glibc-2.12.1/sysdeps/unix/sysv/linux/getpagesize.c.orig 2011-02-28 03:41:47.870001678 +0100
++++ glibc-2.12.1/sysdeps/unix/sysv/linux/getpagesize.c 2011-02-28 03:42:16.712993932 +0100
+@@ -28,7 +28,7 @@
+ int
+ __getpagesize ()
+ {
+-#ifdef __ASSUME_AT_PAGESIZE
++#if 0
+ assert (GLRO(dl_pagesize) != 0);
+ return GLRO(dl_pagesize);
+ #else