server session BUGFIX where crypt_r is not available

Signed-off-by: Mislav Novakovic <mislav.novakovic@sartura.hr>
diff --git a/src/session_server_ssh.c b/src/session_server_ssh.c
index 7187328..31abce2 100644
--- a/src/session_server_ssh.c
+++ b/src/session_server_ssh.c
@@ -751,7 +751,9 @@
 auth_password_compare_pwd(const char *pass_hash, const char *pass_clear)
 {
     char *new_pass_hash;
+#if defined(HAVE_CRYPT_R)
     struct crypt_data cdata;
+#endif
 
     if (!pass_hash[0]) {
         if (!pass_clear[0]) {
@@ -764,8 +766,12 @@
         }
     }
 
+#if defined(HAVE_CRYPT_R)
     cdata.initialized = 0;
     new_pass_hash = crypt_r(pass_clear, pass_hash, &cdata);
+#else
+    new_pass_hash = crypt(pass_clear, pass_hash);
+#endif
     return strcmp(new_pass_hash, pass_hash);
 }