Make usable on 6.x and up. The FreeBSD defines valloc(3) in the

unistd.h, so that we need to include it in order to compile with
mpatrol.
This commit is contained in:
Maxim Sobolev 2008-10-08 18:22:58 +00:00
parent 5b69e3a9f0
commit f4a1c88374
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=221337
2 changed files with 14 additions and 1 deletions

View File

@ -6,7 +6,7 @@
PORTNAME= mpatrol
PORTVERSION= 1.4.8
PORTREVISION= 2
PORTREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://www.cbmamiga.demon.co.uk/mpatrol/files/
DISTNAME= ${PORTNAME}_${PORTVERSION}

View File

@ -0,0 +1,13 @@
$FreeBSD$
--- ../../src/mpatrol.h
+++ ../../src/mpatrol.h
@@ -32,6 +32,7 @@
#include <stdlib.h>
#include <string.h>
#include <stdarg.h>
+#include <unistd.h>
#if !MP_NOCPLUSPLUS
#ifdef __cplusplus
#include <new>