From 90b1890b3a6d3e36bb800b4cf484558a038eaac7 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Wed, 7 May 2008 20:12:40 +0000 Subject: [PATCH] ebl Update IS_TAPE() macro to work in all cases git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6910 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/src/baconfig.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bacula/src/baconfig.h b/bacula/src/baconfig.h index 180f6824fa..f965033d60 100644 --- a/bacula/src/baconfig.h +++ b/bacula/src/baconfig.h @@ -87,7 +87,7 @@ void InitWinAPIWrapper(); #define tape_read win32_tape_read #define tape_write win32_tape_write #define tape_close win32_tape_close -#define IS_TAPE(x) (0) +#define IS_TAPE(x) S_ISCHR(x) #define sbrk(x) 0 @@ -119,7 +119,7 @@ void InitWinAPIWrapper(); # define tape_read faketape_read # define tape_write faketape_write # define tape_close faketape_close -# define IS_TAPE(x) (S_ISCHR(x) || S_ISREG(x)) +# define IS_TAPE(x) S_ISREG(x) #else /* UNIX && !FAKETAPE */ # define tape_open ::open # define tape_ioctl ::ioctl -- 2.39.5