OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

88 lines
2.6 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../dietlibc/patches/pkg_gawk.patch
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. --- gawk-3.1.5/io.c~ 2005-07-26 20:07:43.000000000 +0200
  17. +++ gawk-3.1.5/io.c 2005-09-02 13:08:50.784242397 +0200
  18. @@ -41,8 +41,10 @@
  19. #include <termios.h>
  20. #endif
  21. #ifdef HAVE_STROPTS_H
  22. +#ifndef __dietlibc__
  23. #include <stropts.h>
  24. #endif
  25. +#endif
  26. #ifdef HAVE_SOCKETS
  27. #ifdef HAVE_SYS_SOCKET_H
  28. --- gawk-3.1.5/regex_internal.h~ 2005-05-11 17:28:17.000000000 +0200
  29. +++ gawk-3.1.5/regex_internal.h 2005-09-02 13:14:44.954816214 +0200
  30. @@ -37,6 +37,8 @@
  31. # include <wchar.h>
  32. #endif /* HAVE_WCHAR_H || _LIBC */
  33. #if defined HAVE_WCTYPE_H || defined _LIBC
  34. +#define __BEGIN_NAMESPACE_C99
  35. +#define __END_NAMESPACE_C99
  36. # include <wctype.h>
  37. #endif /* HAVE_WCTYPE_H || _LIBC */
  38. --- gawk-3.1.5/configure.ac~ 2005-07-26 20:43:51.000000000 +0200
  39. +++ gawk-3.1.5/configure.ac 2005-09-02 13:23:40.040012522 +0200
  40. @@ -264,20 +264,20 @@
  41. dnl check for dynamic linking
  42. dnl This is known to be very primitive
  43. AC_CHECK_HEADER(dlfcn.h,
  44. - [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible])
  45. - if test "$GCC" = yes
  46. - then
  47. - # Add others here as appropriate,
  48. - # one day use GNU libtool.
  49. - if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
  50. - then
  51. - LDFLAGS="$LDFLAGS -export-dynamic"
  52. - fi
  53. - fi
  54. -
  55. # Check this separately. Some systems have dlopen
  56. # in libc. Notably freebsd and cygwin.
  57. - AC_CHECK_LIB(dl, dlopen)
  58. + AC_CHECK_LIB(dl, dlopen, [
  59. + [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible])
  60. + if test "$GCC" = yes
  61. + then
  62. + # Add others here as appropriate,
  63. + # one day use GNU libtool.
  64. + if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
  65. + then
  66. + LDFLAGS="$LDFLAGS -export-dynamic"
  67. + fi
  68. + fi
  69. + ])
  70. ])
  71. dnl check for how to use getpgrp
  72. --- gawk-3.1.5/main.c~ 2005-07-06 16:05:14.000000000 +0200
  73. +++ gawk-3.1.5/main.c 2005-09-02 13:34:36.176763197 +0200
  74. @@ -226,11 +226,6 @@
  75. if (getenv("WHINY_USERS") != NULL)
  76. whiny_users = TRUE;
  77. -#ifdef HAVE_MCHECK_H
  78. - if (do_tidy_mem)
  79. - mtrace();
  80. -#endif /* HAVE_MCHECK_H */
  81. -
  82. #if defined(LC_CTYPE)
  83. setlocale(LC_CTYPE, "");
  84. #endif