From: Eric Bollengier Date: Wed, 7 May 2008 20:12:40 +0000 (+0000) Subject: ebl Update IS_TAPE() macro to work in all cases X-Git-Tag: Release-7.0.0~4636 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e922a1f33b869cbb6fe54d99b15229f8dc4d9361;p=bacula%2Fbacula 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 --- 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