The below overrides the cached autoconf value that says that we have 
sbrk(2) on our system and pretends like we don't have it.

With this we can build tcsh without a need for sbrk(2).

ok?

Index: Makefile
===================================================================
RCS file: /cvs/ports/shells/tcsh/Makefile,v
retrieving revision 1.59
diff -u -p -u -r1.59 Makefile
--- Makefile    10 Sep 2018 16:23:27 -0000      1.59
+++ Makefile    4 Nov 2018 19:01:18 -0000
@@ -3,7 +3,7 @@
 COMMENT=       extended C-shell with many useful features
 
 DISTNAME=      tcsh-6.20.00
-REVISION=      1
+REVISION=      2
 CATEGORIES=    shells
 HOMEPAGE=      http://www.tcsh.org/
 
@@ -23,6 +23,7 @@ CONFIGURE_ENV=        LDFLAGS="${STATIC}"
 .endif
 
 CONFIGURE_STYLE=gnu
+CONFIGURE_ENV += ac_cv_func_sbrk=no
 
 AUTOCONF_VERSION=2.59
 TEST_DEPENDS=  ${MODGNU_AUTOCONF_DEPENDS}

Reply via email to