--- compall.orig 2018-09-30 20:45:26.000000000 -0700
+++ compall 2018-11-03 10:10:24.000000000 -0700
# 1. we must select the name of the C compiler, often it is simply cc.
# 2. we must select the #define in zunix.c, and maybe other options.
+set CCOMP=__MACPORTS_CC__
if (($TARGET == axp64) && (`uname` == Linux)) set CCOMP='ccc'
if ($TARGET == cray-xd1) set CCOMP='pgcc -fastsse -tp amd64'
if ($TARGET == fuji-pp32) set CCOMP='fcc'
if ($GMS_PHI == knl && $CCOMP == icc ) set extraflags='-DLINUX64 -xMIC-AVX512'
if ($GMS_PHI == knc && $CCOMP == icc ) set extraflags='-DLINUX64 -mmic'
-if ($TARGET == mac32) set extraflags='-DLINUX32'
-if ($TARGET == mac64) set extraflags='-DLINUX64 -m64 -I/usr/include/malloc'
+if ($TARGET == mac32) set extraflags='-DLINUX32 -m32'
+if ($TARGET == mac64) set extraflags='-DLINUX64 -m64 -I__MACPORTS_SDK__/usr/include/malloc'
if ($TARGET == necsx) set extraflags='-DNECSX -size_t64'
if ($TARGET == sgi32) set extraflags='-DSGI32 -n32'
if ($TARGET == sgi64) set extraflags='-DSGI64 -64'