Added Symbian support.
[silc.git] / lib / silcsftp / sftp_fs_memory.c
index 18cce4d056ad4a133df7056fa3241467a0e6eaa8..3c2ededf866ec32ecf87ebe00ab7b4ab0f4ef5a0 100644 (file)
@@ -948,11 +948,15 @@ void mem_lstat(void *context, SilcSFTP sftp,
   }
 
   /* Get real stat */
-#ifndef SILC_WIN32
+#ifdef SILC_WIN32
+  ret = stat(entry->data + 7, &stats);
+#endif /* SILC_WIN32 */
+#ifdef SILC_UNIX
   ret = lstat(entry->data + 7, &stats);
-#else
+#endif /* SILC_UNIX */
+#ifdef SILC_SYMBIAN
   ret = stat(entry->data + 7, &stats);
-#endif
+#endif /* SILC_SYMBIAN */
   if (ret == -1) {
     (*callback)(sftp, silc_sftp_map_errno(errno), NULL, callback_context);
     return;