mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 09:49:18 -04:00
- fix build for gcc41
This commit is contained in:
parent
a297c312ef
commit
74b0db2a09
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=174835
1 changed files with 22 additions and 0 deletions
22
mail/pathalias/files/patch-mem.c
Normal file
22
mail/pathalias/files/patch-mem.c
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
--- mem.c.orig Wed Mar 3 22:11:23 1993
|
||||||
|
+++ mem.c Sat Oct 7 20:16:25 2006
|
||||||
|
@@ -19,6 +19,10 @@
|
||||||
|
extern char *sbrk();
|
||||||
|
#endif
|
||||||
|
|
||||||
|
+#ifdef MYMALLOC
|
||||||
|
+STATIC void addtoheap();
|
||||||
|
+#endif
|
||||||
|
+
|
||||||
|
/* privates */
|
||||||
|
STATIC void nomem();
|
||||||
|
static link *Lcache;
|
||||||
|
@@ -105,8 +109,6 @@
|
||||||
|
long size;
|
||||||
|
{
|
||||||
|
#ifdef MYMALLOC
|
||||||
|
- STATIC void addtoheap();
|
||||||
|
-
|
||||||
|
addtoheap((char *) t, size * sizeof(node *));
|
||||||
|
#else
|
||||||
|
free((char *) t);
|
Loading…
Add table
Reference in a new issue