Wed May 21 12:54:32 2008 UTC ()
Also add malloc.c as required by configure.
Reported in SF.net bug # 1899047
(tnn)
diff -r1.10 -r1.11 pkgsrc/devel/flex/distinfo
diff -r0 -r1.3 pkgsrc/devel/flex/patches/patch-ac
--- pkgsrc/devel/flex/distinfo 2008/03/08 00:08:42 1.10
+++ pkgsrc/devel/flex/distinfo 2008/05/21 12:54:32 1.11
| @@ -1,7 +1,8 @@ | | | @@ -1,7 +1,8 @@ |
1 | $NetBSD: distinfo,v 1.10 2008/03/08 00:08:42 tnn Exp $ | | 1 | $NetBSD: distinfo,v 1.11 2008/05/21 12:54:32 tnn Exp $ |
2 | | | 2 | |
3 | SHA1 (flex-2.5.35.tar.gz) = 333c876a8e24ae5a17d9573459fc501b7721930b | | 3 | SHA1 (flex-2.5.35.tar.gz) = 333c876a8e24ae5a17d9573459fc501b7721930b |
4 | RMD160 (flex-2.5.35.tar.gz) = 648645f4751ec5029f510730577f5c3e291b7a5e | | 4 | RMD160 (flex-2.5.35.tar.gz) = 648645f4751ec5029f510730577f5c3e291b7a5e |
5 | Size (flex-2.5.35.tar.gz) = 1456620 bytes | | 5 | Size (flex-2.5.35.tar.gz) = 1456620 bytes |
6 | SHA1 (patch-aa) = 938335a9071be62f534bad8e785003318816fd38 | | 6 | SHA1 (patch-aa) = 938335a9071be62f534bad8e785003318816fd38 |
7 | SHA1 (patch-ab) = 84e8f679973ffa298391bfe20215f5c6878ed65e | | 7 | SHA1 (patch-ab) = 84e8f679973ffa298391bfe20215f5c6878ed65e |
| | | 8 | SHA1 (patch-ac) = 27ac026f8a180b49523933c5d70db0237e8dc095 |
$NetBSD: patch-ac,v 1.3 2008/05/21 12:54:32 tnn Exp $
--- /dev/null 2008-04-01 06:44:07.000000000 +0200
+++ malloc.c
@@ -0,0 +1,26 @@
+/* rpl_malloc.c -- a replacement for malloc that don't accept 0 size
+ Copyright (C) 2001 Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 3, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software Foundation,
+ Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA. */
+
+#include <stdlib.h>
+
+void *
+rpl_malloc(size_t size)
+{
+ if (!size)
+ size++;
+ return malloc(size);
+}