From f81561404f854bf2d5145fe588e884d9804340f6 Mon Sep 17 00:00:00 2001 From: christos Date: Wed, 24 May 2006 23:16:50 +0000 Subject: [PATCH] deal with the vax gcc that does not understand __attribute__ used. --- usr.bin/config/main.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/usr.bin/config/main.c b/usr.bin/config/main.c index 23d3a823f220..6fbca9ec443f 100644 --- a/usr.bin/config/main.c +++ b/usr.bin/config/main.c @@ -1,4 +1,4 @@ -/* $NetBSD: main.c,v 1.10 2006/05/14 23:47:34 christos Exp $ */ +/* $NetBSD: main.c,v 1.11 2006/05/24 23:16:50 christos Exp $ */ /* * Copyright (c) 1992, 1993 @@ -1275,7 +1275,9 @@ logconfig_start(void) (void)fprintf(cfg, "#if defined(%s) || defined(%s)\n\n", LOGCONFIG_LARGE, LOGCONFIG_SMALL); (void)fprintf(cfg, - "static const char config[] __attribute__((__used__)) =\n\n"); + "static const char config[]\n#ifdef vax\n" + "\t__attribute__((__unused__))\n#else\n" + "\t__attribute__((__used__))\n#endif\n\t=\n\n"); (void)fprintf(cfg, "#ifdef %s\n\n", LOGCONFIG_LARGE); (void)fprintf(cfg, "\"_CFG_### START CONFIG FILE \\\"%s\\\"\\n\"\n\n",