mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-03-04 03:55:51 +02:00
(S_ISREG, S_ISDIR): Define if not already defined.
(S_TYPEISSEM, S_TYPEISSHM, S_TYPEISTMO): Likewise.
This commit is contained in:
21
src/sys2.h
21
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
|
||||
|
||||
Reference in New Issue
Block a user