diff options
-rw-r--r-- | src/sys2.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h index 8493be78d..2ccdcf27f 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 |