From: Mark Andrews Date: Sat, 12 Apr 2003 04:57:17 +0000 (+0000) Subject: win32: define S_ISREG if it not already defined. X-Git-Tag: v9.2.3rc1~104^2~36 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=c7162293843f3b1cd353d320e9c3948d6cc820fd;p=thirdparty%2Fbind9.git win32: define S_ISREG if it not already defined. --- diff --git a/lib/isc/win32/include/isc/stat.h b/lib/isc/win32/include/isc/stat.h index 04c92797553..6517f519dc8 100644 --- a/lib/isc/win32/include/isc/stat.h +++ b/lib/isc/win32/include/isc/stat.h @@ -15,7 +15,7 @@ * WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. */ -/* $Id: stat.h,v 1.3 2001/07/09 21:06:30 gson Exp $ */ +/* $Id: stat.h,v 1.4 2003/04/12 04:57:17 marka Exp $ */ #ifndef ISC_STAT_H #define ISC_STAT_H 1 @@ -37,7 +37,10 @@ #define S_IWOTH _S_IWRITE /* Other write permission */ #ifndef S_ISDIR -# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR) +# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR) +#endif +#ifndef S_ISREG +# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG) #endif #endif /* ISC_STAT_H */