- (dtucker) [configure.ac ssh-keygen.c openbsd-compat/bsd-openpty.c
   openbsd-compat/daemon.c] Add includes needed by open(2).  Conditionally
   include paths.h.  Fixes build error on Solaris.
diff --git a/ssh-keygen.c b/ssh-keygen.c
index b6959ca..4e42d0c 100644
--- a/ssh-keygen.c
+++ b/ssh-keygen.c
@@ -22,7 +22,9 @@
 #include <openssl/pem.h>
 
 #include <fcntl.h>
-#include <paths.h>
+#ifdef HAVE_PATHS_H
+# include <paths.h>
+#endif
 #include <pwd.h>
 
 #include "xmalloc.h"