From 2016526b1a880b8375d9c77299d3339122fccc0e Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Mon, 12 Jul 1999 13:03:58 +0000 Subject: [PATCH] (decode_header): Do not assume that S_IFBLK and S_IFCHR are defined. --- src/list.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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", -- 2.45.2