aboutsummaryrefslogtreecommitdiffstats
path: root/g10/misc.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/misc.c')
-rw-r--r--g10/misc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/g10/misc.c b/g10/misc.c
index b98ab8f4c..9240f12e7 100644
--- a/g10/misc.c
+++ b/g10/misc.c
@@ -341,8 +341,8 @@ openpgp_md_test_algo( int algo )
int
check_permissions(const char *path,int checkonly)
{
-#ifndef HAVE_DOSISH_SYSTEM
-#ifdef HAVE_STAT
+#if defined(HAVE_STAT) && !defined(HAVE_DOSISH_SYSTEM)
+
struct stat statbuf;
int isdir=0;
@@ -392,8 +392,8 @@ check_permissions(const char *path,int checkonly)
isdir?"directory":"file",path);
return 1;
}
-#endif
-#endif /*!HAVE_DOSISH_SYSTEM*/
+
+#endif /* HAVE_STAT && !HAVE_DOSISH_SYSTEM */
return 0;
}