add header guard when generating bind.keys.h

This commit is contained in:
Evan Hunt
2018-03-20 09:12:37 +00:00
parent 0cc7aa250e
commit bfbe6925df
2 changed files with 6 additions and 2 deletions

View File

@@ -9,8 +9,6 @@
# See the COPYRIGHT file distributed with this work for additional
# information regarding copyright ownership.
# $Id: bindkeys.pl,v 1.7 2011/01/04 23:47:13 tbox Exp $
use strict;
use warnings;
@@ -31,6 +29,9 @@ $lines =~ s/managed-keys/trusted-keys/;
$lines =~ s/\s+initial-key//g;
my $tkey = '#define TRUSTED_KEYS "\\' . "\n" . $lines . "\"\n";
print "#ifndef BIND_KEYS_H\n";
print "#define BIND_KEYS_H 1\n";
print $tkey;
print "\n";
print $mkey;
print "#endif /* BIND_KEYS_H */\n";