Fix building with --disable-legacy-protocol.
[oweals/tinc.git] / src / protocol_key.c
index 58a3bd207c87b4ba25bbb1180d34542eb2851093..d9c58d9516167f40a257153f9552598459cca900 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