summaryrefslogtreecommitdiffstats
path: root/gnu
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1999-11-17 07:39:51 +0000
committerobrien <obrien@FreeBSD.org>1999-11-17 07:39:51 +0000
commit3374c1fa22f0e86eef405371dc9d10bb3415346d (patch)
tree788de075c3d0e029b59fbd583de2e9cf155ba850 /gnu
parent65e383d031b6ae53df5fb1705a211706a2758a56 (diff)
downloadFreeBSD-src-3374c1fa22f0e86eef405371dc9d10bb3415346d.zip
FreeBSD-src-3374c1fa22f0e86eef405371dc9d10bb3415346d.tar.gz
Add `mkstemp.c' to the mix if we are building on something older than
__FreeBSD_version < 400004. This allows -STABLE to build -CURRENT sources. [mkstemps() was added to -current just before the version bump to 400004 (a matter of hours in this case), so the test is as exact as possible.] Submitted by: marcel
Diffstat (limited to 'gnu')
-rw-r--r--gnu/usr.bin/cc/cc_drv/Makefile3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/cc/cc_drv/Makefile b/gnu/usr.bin/cc/cc_drv/Makefile
index c486443..328944b 100644
--- a/gnu/usr.bin/cc/cc_drv/Makefile
+++ b/gnu/usr.bin/cc/cc_drv/Makefile
@@ -5,6 +5,9 @@
.PATH: ../cc_tools ${GCCDIR}
SRCS= multilib.h choose-temp.c obstack.c prefix.c pexecute.c version.c
+.if ${OSVERSION} < 400004
+SRCS+= mkstemp.c
+.endif
CFLAGS+= -DPREFIX=\"/usr\"
CFLAGS+= -DIN_GCC
OpenPOWER on IntegriCloud