getpagesize.patch 564 B

1234567891011121314
  1. This patch is needed at least on kirkwood. Otherwise DNS-lookups will fail, since
  2. GLRO(dl_pagesize) is zero. Solution taken from this resource:
  3. http://www.mail-archive.com/pld-cvs-commit@lists.pld-linux.org/msg228455.html
  4. --- glibc-2.12.1/sysdeps/unix/sysv/linux/getpagesize.c.orig 2011-02-28 03:41:47.870001678 +0100
  5. +++ glibc-2.12.1/sysdeps/unix/sysv/linux/getpagesize.c 2011-02-28 03:42:16.712993932 +0100
  6. @@ -28,7 +28,7 @@
  7. int
  8. __getpagesize ()
  9. {
  10. -#ifdef __ASSUME_AT_PAGESIZE
  11. +#if 0
  12. assert (GLRO(dl_pagesize) != 0);
  13. return GLRO(dl_pagesize);
  14. #else