From: Jim Meyering Date: Wed, 22 May 2002 08:35:31 +0000 (+0000) Subject: (S_ISREG, S_ISDIR): Define if not already defined. X-Git-Tag: FILEUTILS-4_1_9~184 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=925390f0bfda4da412f77c3f4fcd9b68124580a2;p=thirdparty%2Fcoreutils.git (S_ISREG, S_ISDIR): Define if not already defined. (S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Likewise. --- diff --git a/src/sys2.h b/src/sys2.h index 8493be78da..2ccdcf27fa 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -54,6 +54,14 @@ /* If any of the following S_* macros are undefined, define them here so each use doesn't have to be guarded with e.g., #ifdef S_ISLNK. */ +#ifndef S_ISREG +# define S_ISREG(Mode) 0 +#endif + +#ifndef S_ISDIR +# define S_ISDIR(Mode) 0 +#endif + #ifndef S_ISLNK # define S_ISLNK(Mode) 0 #endif @@ -78,6 +86,19 @@ # define S_ISDOOR(Mode) 0 #endif +#ifndef S_TYPEISSEM +# define S_TYPEISSEM(Stat_buf_p) 0 +#endif + +#ifndef S_TYPEISSHM +# define S_TYPEISSHM(Stat_buf_p) 0 +#endif + +#ifndef S_TYPEISTMO +# define S_TYPEISTMO(Stat_buf_p) 0 +#endif + + /* If any of the following are undefined, define them to their de facto standard values. */ #if !S_ISUID