summaryrefslogtreecommitdiff
path: root/usr.sbin/config/mkmakefile.c
diff options
context:
space:
mode:
authorJason Downs <downsj@cvs.openbsd.org>1997-07-06 03:54:07 +0000
committerJason Downs <downsj@cvs.openbsd.org>1997-07-06 03:54:07 +0000
commit23edd72b858f60176cbb3ec7ebd8ab078ecc823c (patch)
tree1406d7074bf99c30869e74f5e3e7c9921f315d68 /usr.sbin/config/mkmakefile.c
parenta392bf7c2557809c971d9fcc9e2dd5dbd7665470 (diff)
Add defopt support, from NetBSD; thorpej (I think, I don't have the commit
message).
Diffstat (limited to 'usr.sbin/config/mkmakefile.c')
-rw-r--r--usr.sbin/config/mkmakefile.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.sbin/config/mkmakefile.c b/usr.sbin/config/mkmakefile.c
index c6278971a22..a5b34ee6c18 100644
--- a/usr.sbin/config/mkmakefile.c
+++ b/usr.sbin/config/mkmakefile.c
@@ -1,5 +1,5 @@
-/* $OpenBSD: mkmakefile.c,v 1.5 1996/10/23 22:37:56 niklas Exp $ */
-/* $NetBSD: mkmakefile.c,v 1.32 1996/09/23 05:04:23 ghudson Exp $ */
+/* $OpenBSD: mkmakefile.c,v 1.6 1997/07/06 03:54:06 downsj Exp $ */
+/* $NetBSD: mkmakefile.c,v 1.34 1997/02/02 21:12:36 thorpej Exp $ */
/*
* Copyright (c) 1992, 1993
@@ -185,6 +185,8 @@ emitdefs(fp)
return (1);
sp = "";
for (nv = options; nv != NULL; nv = nv->nv_next) {
+ if (ht_lookup(defopttab, nv->nv_name) != NULL)
+ continue;
if (fprintf(fp, "%s-D%s", sp, nv->nv_name) < 0)
return 1;
if (nv->nv_str)