mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-30 05:48:18 +00:00
added _S_IFMT, _S_IFREG, and S_ISREG
This commit is contained in:
parent
6b98875f8d
commit
b207b64d8e
13
compat.h
13
compat.h
@ -48,6 +48,19 @@
|
||||
# define MAXHOSTNAMELEN 64
|
||||
#endif
|
||||
|
||||
/*
|
||||
* Posix versions for those without...
|
||||
*/
|
||||
#ifndef _S_IFMT
|
||||
# define _S_IFMT S_IFMT
|
||||
#endif /* _S_IFMT */
|
||||
#ifndef _S_IFREG
|
||||
# define _S_IFREG S_IFREG
|
||||
#endif /* _S_IFREG */
|
||||
#ifndef S_ISREG
|
||||
# define S_ISREG(m) (((m) & _S_IFMT) == _S_IFREG)
|
||||
#endif /* S_ISREG */
|
||||
|
||||
/*
|
||||
* Emulate seteuid() and setegid() for HP-UX
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user