adaint.c: Remove support for readable attribute on vxworks and nucleus
authorPascal Obry <obry@adacore.com>
Tue, 5 Aug 2008 14:37:10 +0000 (16:37 +0200)
committerArnaud Charlet <charlet@gcc.gnu.org>
Tue, 5 Aug 2008 14:37:10 +0000 (16:37 +0200)
2008-08-05  Pascal Obry  <obry@adacore.com>

* adaint.c: Remove support for readable attribute on vxworks and nucleus

From-SVN: r138721

gcc/ada/adaint.c

index 242b82b..1edcac2 100644 (file)
@@ -1943,7 +1943,7 @@ __gnat_set_readable (char *name)
   S2WSU (wname, name, GNAT_MAX_PATH_LEN + 2);
 
   __gnat_set_OWNER_ACL (wname, GRANT_ACCESS, FILE_GENERIC_READ);
-#else
+#elif ! defined (__vxworks) && ! defined(__nucleus__)
   struct stat statbuf;
 
   if (stat (name, &statbuf) == 0)
@@ -1962,7 +1962,7 @@ __gnat_set_non_readable (char *name)
   S2WSU (wname, name, GNAT_MAX_PATH_LEN + 2);
 
   __gnat_set_OWNER_ACL (wname, DENY_ACCESS, FILE_GENERIC_READ);
-#else
+#elif ! defined (__vxworks) && ! defined(__nucleus__)
   struct stat statbuf;
 
   if (stat (name, &statbuf) == 0)