0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. From e8b0ffc7ea04cc71dba97a38e1a134aaf2285c2d Mon Sep 17 00:00:00 2001
  2. From: Khem Raj <raj.khem@gmail.com>
  3. Date: Wed, 30 Dec 2015 07:14:50 +0000
  4. Subject: [PATCH] configure: Use HAVE_SYS_RESOURCE_H to guard sys/resource.h
  5. inclusion
  6. HAVE_RLIM_T check will not let sys/resource.h to be checked and
  7. rlim_t is defined in sys/resource.h so the check would fail.
  8. Signed-off-by: Khem Raj <raj.khem@gmail.com>
  9. ---
  10. Upstream-Status: Pending
  11. aclocal.m4 | 2 +-
  12. configure | 14 +++++++-------
  13. 2 files changed, 8 insertions(+), 8 deletions(-)
  14. diff --git a/aclocal.m4 b/aclocal.m4
  15. index 6e6f32c..70e7076 100644
  16. --- a/aclocal.m4
  17. +++ b/aclocal.m4
  18. @@ -11,7 +11,7 @@ AC_CACHE_VAL(xinetd_cv_type_$1,
  19. #if HAVE_NETDB_H
  20. #include <netdb.h>
  21. #endif
  22. -#if HAVE_RLIM_T
  23. +#if HAVE_SYS_RESOURCE_H
  24. #include <sys/resource.h>
  25. #endif
  26. #if HAVE_STDINT_H
  27. diff --git a/configure b/configure
  28. index b507d38..bec56ea 100755
  29. --- a/configure
  30. +++ b/configure
  31. @@ -7640,7 +7640,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  32. #if HAVE_NETDB_H
  33. #include <netdb.h>
  34. #endif
  35. -#if HAVE_RLIM_T
  36. +#if HAVE_SYS_RESOURCE_H
  37. #include <sys/resource.h>
  38. #endif
  39. #if HAVE_STDINT_H
  40. @@ -7686,7 +7686,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  41. #if HAVE_NETDB_H
  42. #include <netdb.h>
  43. #endif
  44. -#if HAVE_RLIM_T
  45. +#if HAVE_SYS_RESOURCE_H
  46. #include <sys/resource.h>
  47. #endif
  48. #if HAVE_STDINT_H
  49. @@ -7732,7 +7732,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  50. #if HAVE_NETDB_H
  51. #include <netdb.h>
  52. #endif
  53. -#if HAVE_RLIM_T
  54. +#if HAVE_SYS_RESOURCE_H
  55. #include <sys/resource.h>
  56. #endif
  57. #if HAVE_STDINT_H
  58. @@ -7778,7 +7778,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  59. #if HAVE_NETDB_H
  60. #include <netdb.h>
  61. #endif
  62. -#if HAVE_RLIM_T
  63. +#if HAVE_SYS_RESOURCE_H
  64. #include <sys/resource.h>
  65. #endif
  66. #if HAVE_STDINT_H
  67. @@ -7824,7 +7824,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  68. #if HAVE_NETDB_H
  69. #include <netdb.h>
  70. #endif
  71. -#if HAVE_RLIM_T
  72. +#if HAVE_SYS_RESOURCE_H
  73. #include <sys/resource.h>
  74. #endif
  75. #if HAVE_STDINT_H
  76. @@ -7870,7 +7870,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  77. #if HAVE_NETDB_H
  78. #include <netdb.h>
  79. #endif
  80. -#if HAVE_RLIM_T
  81. +#if HAVE_SYS_RESOURCE_H
  82. #include <sys/resource.h>
  83. #endif
  84. #if HAVE_STDINT_H
  85. @@ -7916,7 +7916,7 @@ cat >>conftest.$ac_ext <<_ACEOF
  86. #if HAVE_NETDB_H
  87. #include <netdb.h>
  88. #endif
  89. -#if HAVE_RLIM_T
  90. +#if HAVE_SYS_RESOURCE_H
  91. #include <sys/resource.h>
  92. #endif
  93. #if HAVE_STDINT_H
  94. --
  95. 2.6.4