From: Paul Eggert Date: Mon, 12 Jul 1999 13:03:58 +0000 (+0000) Subject: (decode_header): Do not assume that S_IFBLK and S_IFCHR are defined. X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=2016526b1a880b8375d9c77299d3339122fccc0e;p=chaz%2Ftar (decode_header): Do not assume that S_IFBLK and S_IFCHR are defined. --- diff --git a/src/list.c b/src/list.c index 18f3225..9c6d6a0 100644 --- a/src/list.c +++ b/src/list.c @@ -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",