Commit 39a17bef authored by bsheedy's avatar bsheedy Committed by Commit Bot

Update APR diff.patch

Updates Apache Portable Runtime's diff.patch file to include the change
from https://chromium-review.googlesource.com/c/external/apache-portable-runtime/+/814880.

Bug: 
Change-Id: I9465a74c8ee8442c5a696989f1a665e1946a7408
Reviewed-on: https://chromium-review.googlesource.com/820596Reviewed-by: default avatarAndrei Kapishnikov <kapishnikov@chromium.org>
Commit-Queue: Brian Sheedy <bsheedy@chromium.org>
Cr-Commit-Position: refs/heads/master@{#523470}
parent c5e394bc
...@@ -115,6 +115,26 @@ diff -ruN ./original/include/arch/unix/apr_private.h ./changed/include/arch/unix ...@@ -115,6 +115,26 @@ diff -ruN ./original/include/arch/unix/apr_private.h ./changed/include/arch/unix
-#define HAVE_EPOLL_CREATE1 1 -#define HAVE_EPOLL_CREATE1 1
+/* #define HAVE_EPOLL_CREATE1 1 */ +/* #define HAVE_EPOLL_CREATE1 1 */
@@ -183,10 +183,19 @@
#define HAVE_GETENV 1
/* Define to 1 if you have the `getgrgid_r' function. */
-#define HAVE_GETGRGID_R 1
+// Removed due to incompatability with Android NDK r16
+// On older NDK versions, _POSIX_THREAD_SAFE_FUNCTIONS was unconditionally
+// #undef'd. On newer versions, it is unconditionally defined as the Posix
+// version. This causes issues in
+// user/unix/groupinfo.c, as APR seems to unconditionally define
+// HAVE_GETGRGID_R AND HAVE_GETGRNAM_R, and the only thing that was previously
+// preventing it from using getgrgid_r/getgrnam_r was
+// _POSIX_THREAD_SAFE_FUNCTIONS being undefined.
+// #define HAVE_GETGRGID_R 1
/* Define to 1 if you have the `getgrnam_r' function. */
-#define HAVE_GETGRNAM_R 1
+// Removed due to incompatability with Android NDK r16
+// #define HAVE_GETGRNAM_R 1
/* Define to 1 if you have the <errno.h> header file. */ /* Define to 1 if you have the <errno.h> header file. */
#define HAVE_ERRNO_H 1 #define HAVE_ERRNO_H 1
@@ -195,13 +195,13 @@ @@ -195,13 +195,13 @@
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment