Author: rmottola
Date: Mon Feb 29 14:27:09 2016
New Revision: 39427
URL: http://svn.gna.org/viewcvs/gnustep?rev=39427&view=rev
Log:
quick workaround for GNU HURD, full configure test would be needed
Modified:
libs/gui/trunk/Source/NSWorkspace.m
Modified: libs/gui/trunk/Source/NSWorkspace.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/trunk/Source/NSWorkspace.m?rev=39427&r1=39426&r2=39427&view=diff
==============================================================================
--- libs/gui/trunk/Source/NSWorkspace.m (original)
+++ libs/gui/trunk/Source/NSWorkspace.m Mon Feb 29 14:27:09 2016
@@ -1200,7 +1200,11 @@
if ([removables containsObject: fullPath])
*removableFlag = YES;
+ *writableFlag = 1;
+ // FIXME TODO maybe we need an explicit configure check for f_flags
+#if !defined(__GNU__)
*writableFlag = (m.f_flags & ST_RDONLY) == 0;
+#endif
*unmountableFlag = NO;
#if defined(ST_ROOTFS) // new NetBSD, Linux
@@ -1213,6 +1217,7 @@
*description = @"filesystem"; // FIXME
+ *fileSystemType = nil;
#if defined (__linux__)
if (m.f_type == EXT2_SUPER_MAGIC)
*fileSystemType = @"EXT2";
@@ -1235,7 +1240,8 @@
#elif defined(__sun__)
*fileSystemType =
[[NSString alloc] initWithCString: m.f_basetype encoding: enc];
-#else
+#elf !defined(__GNU__)
+ // FIXME we disable this for HURD, but we need to check for struct member in
configure
*fileSystemType =
[[NSString alloc] initWithCString: m.f_fstypename encoding: enc];
#endif
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs