diff options
author | tnn <tnn@pkgsrc.org> | 2008-05-21 12:54:32 +0000 |
---|---|---|
committer | tnn <tnn@pkgsrc.org> | 2008-05-21 12:54:32 +0000 |
commit | 1c33796849977cd7325ca04ca6248fa86869c99f (patch) | |
tree | 4e986c2d434a800d7a33311fbc25c92b72a44153 /devel/flex | |
parent | 9a01643e927b55bf527f2733752c94bdace4bec3 (diff) | |
download | pkgsrc-1c33796849977cd7325ca04ca6248fa86869c99f.tar.gz |
Also add malloc.c as required by configure.
Reported in SF.net bug # 1899047
Diffstat (limited to 'devel/flex')
-rw-r--r-- | devel/flex/distinfo | 3 | ||||
-rw-r--r-- | devel/flex/patches/patch-ac | 31 |
2 files changed, 33 insertions, 1 deletions
diff --git a/devel/flex/distinfo b/devel/flex/distinfo index 235d24e298c..f3343aa3c27 100644 --- a/devel/flex/distinfo +++ b/devel/flex/distinfo @@ -1,7 +1,8 @@ -$NetBSD: distinfo,v 1.10 2008/03/08 00:08:42 tnn Exp $ +$NetBSD: distinfo,v 1.11 2008/05/21 12:54:32 tnn Exp $ SHA1 (flex-2.5.35.tar.gz) = 333c876a8e24ae5a17d9573459fc501b7721930b RMD160 (flex-2.5.35.tar.gz) = 648645f4751ec5029f510730577f5c3e291b7a5e Size (flex-2.5.35.tar.gz) = 1456620 bytes SHA1 (patch-aa) = 938335a9071be62f534bad8e785003318816fd38 SHA1 (patch-ab) = 84e8f679973ffa298391bfe20215f5c6878ed65e +SHA1 (patch-ac) = 27ac026f8a180b49523933c5d70db0237e8dc095 diff --git a/devel/flex/patches/patch-ac b/devel/flex/patches/patch-ac new file mode 100644 index 00000000000..d4f68c2d408 --- /dev/null +++ b/devel/flex/patches/patch-ac @@ -0,0 +1,31 @@ +$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); ++} |