add header guard when generating bind.keys.h
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user