xref: /OK3568_Linux_fs/buildroot/package/apr/0002-sys-param-h.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1Fix PATH_MAX detection by including sys/param.h if available
2
3Patch sent upstream:
4https://bz.apache.org/bugzilla/show_bug.cgi?id=63782
5
6Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
7
8diff -uNr apr-1.7.0.orig/configure.in apr-1.7.0/configure.in
9--- apr-1.7.0.orig/configure.in	2019-04-01 19:40:46.000000000 +0200
10+++ apr-1.7.0/configure.in	2019-09-29 17:03:41.803326791 +0200
11@@ -1586,6 +1586,7 @@
12 AC_SUBST(stringh)
13 AC_SUBST(stringsh)
14 AC_SUBST(sys_ioctlh)
15+AC_SUBST(sys_paramh)
16 AC_SUBST(sys_sendfileh)
17 AC_SUBST(sys_signalh)
18 AC_SUBST(sys_socketh)
19diff -uNr apr-1.7.0.orig/include/apr.h.in apr-1.7.0/include/apr.h.in
20--- apr-1.7.0.orig/include/apr.h.in	2019-03-22 14:30:31.000000000 +0100
21+++ apr-1.7.0/include/apr.h.in	2019-09-29 17:04:54.203815469 +0200
22@@ -95,6 +95,7 @@
23 #define APR_HAVE_STRINGS_H       @stringsh@
24 #define APR_HAVE_INTTYPES_H      @inttypesh@
25 #define APR_HAVE_SYS_IOCTL_H     @sys_ioctlh@
26+#define APR_HAVE_SYS_PARAM_H     @sys_paramh@
27 #define APR_HAVE_SYS_SENDFILE_H  @sys_sendfileh@
28 #define APR_HAVE_SYS_SIGNAL_H    @sys_signalh@
29 #define APR_HAVE_SYS_SOCKET_H    @sys_socketh@
30@@ -206,6 +207,9 @@
31 #include <sys/syslimits.h>
32 #endif
33 #endif
34+#if APR_HAVE_SYS_PARAM_H
35+#include <sys/param.h>
36+#endif
37
38 /* __APPLE__ is now the official pre-defined macro for macOS */
39 #ifdef __APPLE__
40