1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../gawk/compile.patch.dietlibc
5 # Copyright (C) 2004 - 2016 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
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
28 #ifdef HAVE_SYS_SOCKET_H
29 --- gawk-3.1.5/regex_internal.h~ 2005-05-11 17:28:17.000000000 +0200
30 +++ gawk-3.1.5/regex_internal.h 2005-09-02 13:14:44.954816214 +0200
33 #endif /* HAVE_WCHAR_H || _LIBC */
34 #if defined HAVE_WCTYPE_H || defined _LIBC
35 +#define __BEGIN_NAMESPACE_C99
36 +#define __END_NAMESPACE_C99
38 #endif /* HAVE_WCTYPE_H || _LIBC */
40 --- gawk-3.1.5/configure.ac~ 2005-07-26 20:43:51.000000000 +0200
41 +++ gawk-3.1.5/configure.ac 2005-09-02 13:23:40.040012522 +0200
43 dnl check for dynamic linking
44 dnl This is known to be very primitive
45 AC_CHECK_HEADER(dlfcn.h,
46 - [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible])
47 - if test "$GCC" = yes
49 - # Add others here as appropriate,
50 - # one day use GNU libtool.
51 - if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
53 - LDFLAGS="$LDFLAGS -export-dynamic"
57 # Check this separately. Some systems have dlopen
58 # in libc. Notably freebsd and cygwin.
59 - AC_CHECK_LIB(dl, dlopen)
60 + AC_CHECK_LIB(dl, dlopen, [
61 + [AC_DEFINE([DYNAMIC], 1, [dynamic loading is possible])
62 + if test "$GCC" = yes
64 + # Add others here as appropriate,
65 + # one day use GNU libtool.
66 + if uname | $EGREP -i 'linux|freebsd|cygwin' > /dev/null
68 + LDFLAGS="$LDFLAGS -export-dynamic"
74 dnl check for how to use getpgrp
75 --- gawk-3.1.5/main.c~ 2005-07-06 16:05:14.000000000 +0200
76 +++ gawk-3.1.5/main.c 2005-09-02 13:34:36.176763197 +0200
78 if (getenv("WHINY_USERS") != NULL)
84 -#endif /* HAVE_MCHECK_H */
87 setlocale(LC_CTYPE, "");