diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2022-07-22 04:51:08 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2022-07-22 04:51:08 -0400 |
commit | fe8b73b2f99a723990c1dc5ba4bb6a3efa380832 (patch) | |
tree | 37b9a4cf030aeaaf02b5d5fa9744dff9f73ada6f /src/mod_webdav.c | |
parent | 10d5786fe64d18aee2e9ecee7103a7d285c5f34e (diff) | |
download | lighttpd-git-fe8b73b2f99a723990c1dc5ba4bb6a3efa380832.tar.gz |
[mod_webdav] build with Android NDK
Diffstat (limited to 'src/mod_webdav.c')
-rw-r--r-- | src/mod_webdav.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mod_webdav.c b/src/mod_webdav.c index d0bb2f3f..ccb18268 100644 --- a/src/mod_webdav.c +++ b/src/mod_webdav.c @@ -189,8 +189,16 @@ #include <unistd.h> /* getpid() linkat() rmdir() unlinkat() */ #ifdef RENAME_NOREPLACE /*(renameat2() not well-supported yet)*/ +#ifndef __ANDROID_API__ /*(not yet Android?)*/ #define HAVE_RENAMEAT2 #endif +#endif + +#ifdef _DIRENT_HAVE_D_TYPE +#ifndef DTTOIF /* missing on Android? */ +#define DTTOIF(dirtype) ((dirtype) << 12) +#endif +#endif #ifdef HAVE_COPY_FILE_RANGE #ifdef __FreeBSD__ |