summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2004-01-09 17:10:07 +0000
committerbrad <brad@openbsd.org>2004-01-09 17:10:07 +0000
commit93b5860a4f51b90efc353c183a6240c8dc241457 (patch)
treeef52a952249c10e055295c74f4a96a0383562617
parentInitialize procbase2 to 0 in _kvm_open(); Dan Harnett (diff)
downloadwireguard-openbsd-93b5860a4f51b90efc353c183a6240c8dc241457.tar.xz
wireguard-openbsd-93b5860a4f51b90efc353c183a6240c8dc241457.zip
use cc -E for the preprocessor instead of cpp.
ok espie@ millert@
-rw-r--r--bin/ksh/Makefile4
-rw-r--r--usr.bin/kdump/mkioctls4
2 files changed, 4 insertions, 4 deletions
diff --git a/bin/ksh/Makefile b/bin/ksh/Makefile
index 7a8401cea3c..4c2077fa403 100644
--- a/bin/ksh/Makefile
+++ b/bin/ksh/Makefile
@@ -1,4 +1,4 @@
-# $OpenBSD: Makefile,v 1.15 2003/08/11 09:41:31 miod Exp $
+# $OpenBSD: Makefile,v 1.16 2004/01/09 17:10:07 brad Exp $
PROG= ksh
SRCS= alloc.c c_ksh.c c_sh.c c_test.c c_ulimit.c edit.c emacs.c \
@@ -21,7 +21,7 @@ MLINKS= ksh.1 rksh.1 ksh.1 ulimit.1
siglist.out: config.h sh.h siglist.in siglist.sh
/bin/sh ${.CURDIR}/siglist.sh \
- "${CPP} ${CPPFLAGS} ${DEFS} -I${.CURDIR}" \
+ "${CC} -E ${CPPFLAGS} ${DEFS} -I${.CURDIR}" \
< ${.CURDIR}/siglist.in > siglist.out
emacs.out: emacs.c
diff --git a/usr.bin/kdump/mkioctls b/usr.bin/kdump/mkioctls
index cc801364926..916ce8de939 100644
--- a/usr.bin/kdump/mkioctls
+++ b/usr.bin/kdump/mkioctls
@@ -1,5 +1,5 @@
#!/bin/sh -
-# $OpenBSD: mkioctls,v 1.14 2003/07/02 20:54:17 deraadt Exp $
+# $OpenBSD: mkioctls,v 1.15 2004/01/09 17:10:07 brad Exp $
#
# Copyright (c) 1994
@@ -31,7 +31,7 @@
#
# @(#)mkioctls 8.2 (Berkeley) 4/28/95
#
-cpp -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@"} | awk '
+${CC:-cc} -E -nostdinc -idirafter $DESTDIR/usr/include -dM ${1+"$@"} | awk '
BEGIN {
print "#include <sys/param.h>"
print "#include <sys/socket.h>"