From 27a736a9748389af2f1280bd526fec515343bcf6 Mon Sep 17 00:00:00 2001 From: Otto Moerbeek Date: Fri, 15 Apr 2005 14:28:57 +0000 Subject: Remove standard defines from cpp processing, to prevent accidental substitutions (e.g. i386 -> 1). From John L. Scarfone, PR 4176. ok deraadt@ --- usr.bin/calendar/io.c | 8 ++++---- 1 file 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); } -- cgit v1.2.3