Fix building with --disable-legacy-protocol.
[tinc] / src / protocol_key.c
index 58a3bd2..d9c58d9 100644 (file)
@@ -34,7 +34,9 @@
 #include "utils.h"
 #include "xalloc.h"
 
+#ifndef DISABLE_LEGACY
 static bool mykeyused = false;
+#endif
 
 void send_key_changed(void) {
 #ifndef DISABLE_LEGACY