]> Dogcows Code - chaz/tar/commitdiff
(decode_header): Do not assume that S_IFBLK and S_IFCHR are defined.
authorPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Jul 1999 13:03:58 +0000 (13:03 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Mon, 12 Jul 1999 13:03:58 +0000 (13:03 +0000)
src/list.c

index 18f3225cdc0fc9b8350b5d8e34fb1c2f9dc9794f..9c6d6a003a1ae3cf4e120fca16e0e9fb1e4d1334 100644 (file)
@@ -507,7 +507,7 @@ decode_header (union block *header, struct stat *stat_info,
        }
       switch (header->header.typeflag)
        {
-#ifdef S_IFBLK
+#ifdef S_ISBLK
        case BLKTYPE:
          stat_info->st_rdev
            = makedev (MAJOR_FROM_OCT (header->header.devmajor),
@@ -515,7 +515,7 @@ decode_header (union block *header, struct stat *stat_info,
          break;
 #endif
 
-#ifdef S_IFCHR
+#ifdef S_ISCHR
        case CHRTYPE:
          stat_info->st_rdev
            = makedev (MAJOR_FROM_OCT (header->header.devmajor),
@@ -872,7 +872,7 @@ print_header (void)
 
       switch (current_header->header.typeflag)
        {
-#if defined(S_IFBLK) || defined(S_IFCHR)
+#if defined S_ISBLK || defined S_ISCHR
        case CHRTYPE:
        case BLKTYPE:
          sprintf (size, "%lu,%lu",
This page took 0.02749 seconds and 4 git commands to generate.