missing include for base64 encoding
diff --git a/sshkey.c b/sshkey.c
index a32bd36..9b37c9a 100644
--- a/sshkey.c
+++ b/sshkey.c
@@ -40,6 +40,7 @@
 #include <errno.h>
 #include <stdio.h>
 #include <string.h>
+#include <resolv.h>
 #ifdef HAVE_UTIL_H
 #include <util.h>
 #endif /* HAVE_UTIL_H */