From bbc17d4d1f6688ed48165d636c222ddc6dffabbb Mon Sep 17 00:00:00 2001 From: jtkohl Date: Wed, 30 Aug 1989 11:25:31 +0000 Subject: [PATCH] location change for cpp on post-4.3 systems --- util/imake/imake.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/util/imake/imake.c b/util/imake/imake.c index 5e2d89e4..6127b70a 100644 --- a/util/imake/imake.c +++ b/util/imake/imake.c @@ -122,11 +122,16 @@ int InRule = FALSE; typedef u_char boolean; -#ifndef apollo -char *cpp = "/lib/cpp"; -#else apollo +#include +#if BSD > 43 +char *cpp = "/usr/bin/cpp"; +#else +#ifdef apollo char *cpp = "/usr/lib/cpp"; -#endif /* apollo */ +#else +char *cpp = "/lib/cpp"; +#endif +#endif char *tmpMakefile = "/usr/tmp/tmp-make.XXXXXX"; char *tmpImakefile = "/usr/tmp/tmp-imake.XXXXXX"; -- 2.45.1