]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
add header guard when generating bind.keys.h
authorEvan Hunt <each@isc.org>
Tue, 20 Mar 2018 09:12:37 +0000 (09:12 +0000)
committerEvan Hunt <each@isc.org>
Fri, 20 Apr 2018 23:51:00 +0000 (19:51 -0400)
bind.keys.h
util/bindkeys.pl

index 0c4b4771c04cafbccca9f8b7cea3079643630ed8..746dfa289dcce1035830a160e2d2ab0c0979d979 100644 (file)
@@ -1,3 +1,5 @@
+#ifndef BIND_KEYS_H
+#define BIND_KEYS_H 1
 #define TRUSTED_KEYS "\
 # The bind.keys file is used to override the built-in DNSSEC trust anchors\n\
 # which are included as part of BIND 9.  The only trust anchors it contains\n\
@@ -103,3 +105,4 @@ managed-keys {\n\
                 R1AkUTV74bU=\";\n\
 };\n\
 "
+#endif /* BIND_KEYS_H */
index b149da01653082c1fe0c1a7a5d5c8c006ec651f9..0fd585606225badf35c275d3e013b7793dcc009a 100755 (executable)
@@ -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";