Fix warnings building on newer OS X
Apple has gotten around to updating their POSIX support so these constants are now defined. Add some #ifndef guards to prevent warnings during compile.
This commit is contained in:
parent
e1d5fc2575
commit
129626b593
@ -11,16 +11,26 @@
|
|||||||
* to determine the target of relative file paths in the openat() and
|
* to determine the target of relative file paths in the openat() and
|
||||||
* similar syscalls.
|
* similar syscalls.
|
||||||
*/
|
*/
|
||||||
|
#ifndef AT_FDCWD
|
||||||
#define AT_FDCWD -100 /* CWD FD for the *at() functions */
|
#define AT_FDCWD -100 /* CWD FD for the *at() functions */
|
||||||
|
#endif
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Miscellaneous flags for the *at() syscalls.
|
* Miscellaneous flags for the *at() syscalls.
|
||||||
*/
|
*/
|
||||||
|
#ifndef AT_EACCESS
|
||||||
#define AT_EACCESS 0x100 /* faccessat() */
|
#define AT_EACCESS 0x100 /* faccessat() */
|
||||||
|
#endif
|
||||||
|
#ifndef AT_SYMLINK_NOFOLLOW
|
||||||
#define AT_SYMLINK_NOFOLLOW 0x200 /* fstatat(), fchmodat(), fchownat(),
|
#define AT_SYMLINK_NOFOLLOW 0x200 /* fstatat(), fchmodat(), fchownat(),
|
||||||
utimensat() */
|
utimensat() */
|
||||||
|
#endif
|
||||||
|
#ifndef AT_SYMLINK_FOLLOW
|
||||||
#define AT_SYMLINK_FOLLOW 0x400 /* linkat() */
|
#define AT_SYMLINK_FOLLOW 0x400 /* linkat() */
|
||||||
|
#endif
|
||||||
|
#ifndef AT_REMOVEDIR
|
||||||
#define AT_REMOVEDIR 0x800 /* unlinkat() */
|
#define AT_REMOVEDIR 0x800 /* unlinkat() */
|
||||||
|
#endif
|
||||||
|
|
||||||
__BEGIN_DECLS
|
__BEGIN_DECLS
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user