[mod_webdav] compile fix for Mac OSX/11

This commit is contained in:
Glenn Strauss 2020-11-30 01:38:08 -05:00
parent 01d49a283d
commit ab5ae94509
1 changed files with 8 additions and 0 deletions

View File

@ -182,6 +182,14 @@
#include <string.h>
#include <unistd.h> /* getpid() linkat() rmdir() unlinkat() */
#if defined(__APPLE__) && defined(__MACH__)
#ifdef AT_SYMLINK_NOFOLLOW
#ifndef _ATFILE_SOURCE
#define _ATFILE_SOURCE
#endif
#endif
#endif
/* Note: filesystem access race conditions exist without _ATFILE_SOURCE */
#ifndef _ATFILE_SOURCE
#define AT_SYMLINK_NOFOLLOW 0