Browse Source

Remove Cray support.

Sync with gnulib dea936112710e82dd42ffbea510f3bb644acdaaa.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
Andrew Borodin 4 years ago
parent
commit
c5c561274b
3 changed files with 1 additions and 12 deletions
  1. 0 6
      lib/stat-size.h
  2. 0 5
      src/filemanager/mountlist.c
  3. 1 1
      src/vfs/smbfs/helpers/include/includes.h

+ 0 - 6
lib/stat-size.h

@@ -81,12 +81,6 @@
   /* HP-UX counts st_blocks in 1024-byte units.
      This loses when mixing HP-UX and BSD file systems with NFS.  */
 #define ST_NBLOCKSIZE 1024
-#else /* !hpux */
-#if defined _CRAY
-#define ST_NBLOCKS(statbuf) \
-  (S_ISREG ((statbuf).st_mode) || S_ISDIR ((statbuf).st_mode) \
-   ? (statbuf).st_blocks * ST_BLKSIZE (statbuf) / ST_NBLOCKSIZE : 0)
-#endif
 #endif
 #endif
 

+ 0 - 5
src/filemanager/mountlist.c

@@ -1430,14 +1430,9 @@ get_fs_usage (char const *file, char const *disk, struct fs_usage *fsp)
         /* Empirically, the block counts on most SVR3 and SVR3-derived
            systems seem to always be in terms of 512-byte blocks,
            no matter what value f_bsize has.  */
-#if defined _CRAY
-        fsp->fsu_blocksize = PROPAGATE_ALL_ONES (fsd.f_bsize);
-#else
         fsp->fsu_blocksize = 512;
 #endif
 
-#endif
-
 #if (defined STAT_STATVFS64 || defined STAT_STATFS3_OSF1 \
      || defined STAT_STATFS2_FRSIZE || defined STAT_STATFS2_BSIZE \
      || defined STAT_STATFS2_FSIZE || defined STAT_STATFS4)

+ 1 - 1
src/vfs/smbfs/helpers/include/includes.h

@@ -189,7 +189,7 @@
 #include <sys/fs/s5param.h>
 #endif
 
-#if defined (HAVE_SYS_FILSYS_H) && !defined (_CRAY)
+#ifdef HAVE_SYS_FILSYS_H
 #include <sys/filsys.h>
 #endif