diff options
author | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-15 14:28:57 +0000 |
---|---|---|
committer | Otto Moerbeek <otto@cvs.openbsd.org> | 2005-04-15 14:28:57 +0000 |
commit | 27a736a9748389af2f1280bd526fec515343bcf6 (patch) | |
tree | 929d48b33d6e793791f11bb6dced9028e7dbafec | |
parent | 097d07fd926691841d495f70789739e46d481853 (diff) |
Remove standard defines from cpp processing, to prevent accidental
substitutions (e.g. i386 -> 1). From John L. Scarfone, PR 4176.
ok deraadt@
-rw-r--r-- | usr.bin/calendar/io.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/calendar/io.c b/usr.bin/calendar/io.c index 8a895251a2a..9f50e62cd0e 100644 --- a/usr.bin/calendar/io.c +++ b/usr.bin/calendar/io.c @@ -1,4 +1,4 @@ -/* $OpenBSD: io.c,v 1.28 2004/12/10 15:31:01 mickey Exp $ */ +/* $OpenBSD: io.c,v 1.29 2005/04/15 14:28:56 otto Exp $ */ /* * Copyright (c) 1989, 1993, 1994 @@ -39,7 +39,7 @@ static const char copyright[] = #if 0 static const char sccsid[] = "@(#)calendar.c 8.3 (Berkeley) 3/25/94"; #else -static const char rcsid[] = "$OpenBSD: io.c,v 1.28 2004/12/10 15:31:01 mickey Exp $"; +static const char rcsid[] = "$OpenBSD: io.c,v 1.29 2005/04/15 14:28:56 otto Exp $"; #endif #endif /* not lint */ @@ -377,8 +377,8 @@ opencal(void) (void)dup2(fderr, STDERR_FILENO); (void)close(fderr); } - execl(_PATH_CPP, "cpp", "-traditional", "-P", "-I.", - _PATH_INCLUDE, (char *)NULL); + execl(_PATH_CPP, "cpp", "-traditional", "-undef", "-U__GNUC__", + "-P", "-I.", _PATH_INCLUDE, (char *)NULL); warn(_PATH_CPP); _exit(1); } |