-only used on UNIX
authorChristian Grothoff <christian@grothoff.org>
Mon, 7 May 2012 11:09:17 +0000 (11:09 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 7 May 2012 11:09:17 +0000 (11:09 +0000)
src/util/disk.c

index 667e350d97f33b437ffaed561a12ac018d475b45..847dad457ec141101c37a79e035054e2a1edc220 100644 (file)
@@ -116,6 +116,14 @@ struct GetFileSizeData
 };
 
 
+#ifndef MINGW
+/**
+ * Translate GNUnet-internal permission bitmap to UNIX file
+ * access permission bitmap.
+ *
+ * @param perm file permissions, GNUnet style
+ * @return file permissions, UNIX style
+ */
 static int
 translate_unix_perms (enum GNUNET_DISK_AccessPermissions perm)
 {
@@ -143,6 +151,7 @@ translate_unix_perms (enum GNUNET_DISK_AccessPermissions perm)
 
   return mode;
 }
+#endif
 
 
 /**