You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
974 B

  1. Fix PATH_MAX detection by including sys/param.h if available
  2. Patch sent upstream:
  3. https://bz.apache.org/bugzilla/show_bug.cgi?id=63782
  4. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  5. --- a/configure.in
  6. +++ b/configure.in
  7. @@ -1596,6 +1596,7 @@ AC_SUBST(stdlibh)
  8. AC_SUBST(stringh)
  9. AC_SUBST(stringsh)
  10. AC_SUBST(sys_ioctlh)
  11. +AC_SUBST(sys_paramh)
  12. AC_SUBST(sys_sendfileh)
  13. AC_SUBST(sys_signalh)
  14. AC_SUBST(sys_socketh)
  15. --- a/include/apr.h.in
  16. +++ b/include/apr.h.in
  17. @@ -95,6 +95,7 @@
  18. #define APR_HAVE_STRINGS_H @stringsh@
  19. #define APR_HAVE_INTTYPES_H @inttypesh@
  20. #define APR_HAVE_SYS_IOCTL_H @sys_ioctlh@
  21. +#define APR_HAVE_SYS_PARAM_H @sys_paramh@
  22. #define APR_HAVE_SYS_SENDFILE_H @sys_sendfileh@
  23. #define APR_HAVE_SYS_SIGNAL_H @sys_signalh@
  24. #define APR_HAVE_SYS_SOCKET_H @sys_socketh@
  25. @@ -218,6 +219,9 @@
  26. #ifdef __cplusplus
  27. extern "C" {
  28. #endif
  29. +#if APR_HAVE_SYS_PARAM_H
  30. +#include <sys/param.h>
  31. +#endif
  32. /**
  33. * @addtogroup apr_platform