diff options
author | krion <krion@FreeBSD.org> | 2007-03-23 18:15:18 +0800 |
---|---|---|
committer | krion <krion@FreeBSD.org> | 2007-03-23 18:15:18 +0800 |
commit | 886a52070a6b3ff431aeb850f045bddee7cbf42b (patch) | |
tree | 31f868c44239694d24949fca7b7ced7e690f4538 | |
parent | 5ec456fc0e2d8cfb069db07cc37adb881a586615 (diff) | |
download | freebsd-ports-gnome-886a52070a6b3ff431aeb850f045bddee7cbf42b.tar.gz freebsd-ports-gnome-886a52070a6b3ff431aeb850f045bddee7cbf42b.tar.zst freebsd-ports-gnome-886a52070a6b3ff431aeb850f045bddee7cbf42b.zip |
Fix build with gcc41
Reported by: pointyhat via kris
-rw-r--r-- | lang/gawk/files/patch-dfa.c | 13 | ||||
-rw-r--r-- | lang/gawk/files/patch-hard-locale.h | 22 |
2 files changed, 35 insertions, 0 deletions
diff --git a/lang/gawk/files/patch-dfa.c b/lang/gawk/files/patch-dfa.c new file mode 100644 index 000000000000..84fff35acc0a --- /dev/null +++ b/lang/gawk/files/patch-dfa.c @@ -0,0 +1,13 @@ + +$FreeBSD$ + +--- dfa.c.orig ++++ dfa.c +@@ -122,7 +122,6 @@ + static void dfamust PARAMS ((struct dfa *dfa)); + + static ptr_t xcalloc PARAMS ((size_t n, size_t s)); +-static ptr_t xmalloc PARAMS ((size_t n)); + static ptr_t xrealloc PARAMS ((ptr_t p, size_t n)); + #ifdef DEBUG + static void prtok PARAMS ((token t)); diff --git a/lang/gawk/files/patch-hard-locale.h b/lang/gawk/files/patch-hard-locale.h new file mode 100644 index 000000000000..7da22744c3cc --- /dev/null +++ b/lang/gawk/files/patch-hard-locale.h @@ -0,0 +1,22 @@ + +$FreeBSD$ + +--- hard-locale.h.orig ++++ hard-locale.h +@@ -22,6 +22,8 @@ + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + + ++static ptr_t xmalloc PARAMS ((size_t n)); ++ + /* Return nonzero if the current CATEGORY locale is hard, i.e. if you + can't get away with assuming traditional C or POSIX behavior. */ + static int +@@ -40,7 +42,6 @@ + if (strcmp (p, "C") == 0 || strcmp (p, "POSIX") == 0) + hard = 0; + # else +- static ptr_t xmalloc PARAMS ((size_t n)); + + char *locale = xmalloc (strlen (p) + 1); + strcpy (locale, p); |