aboutsummaryrefslogtreecommitdiffstats
path: root/meta/recipes-extended/xinetd/xinetd/0001-configure-Use-HAVE_SYS_RESOURCE_H-to-guard-sys-resou.patch
blob: 3c1b2f6f0e430252536090fa54fbe4326ad83f09 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
From e8b0ffc7ea04cc71dba97a38e1a134aaf2285c2d Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Wed, 30 Dec 2015 07:14:50 +0000
Subject: [PATCH] configure: Use HAVE_SYS_RESOURCE_H to guard sys/resource.h
 inclusion

HAVE_RLIM_T check will not let sys/resource.h to be checked and
rlim_t is defined in sys/resource.h so the check would fail.

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
Upstream-Status: Pending

 aclocal.m4 |  2 +-
 configure  | 14 +++++++-------
 2 files changed, 8 insertions(+), 8 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 6e6f32c..70e7076 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -11,7 +11,7 @@ AC_CACHE_VAL(xinetd_cv_type_$1,
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
diff --git a/configure b/configure
index b507d38..bec56ea 100755
--- a/configure
+++ b/configure
@@ -7640,7 +7640,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
@@ -7686,7 +7686,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
@@ -7732,7 +7732,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
@@ -7778,7 +7778,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
@@ -7824,7 +7824,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
@@ -7870,7 +7870,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
@@ -7916,7 +7916,7 @@ cat >>conftest.$ac_ext <<_ACEOF
 #if HAVE_NETDB_H
 #include <netdb.h>
 #endif
-#if HAVE_RLIM_T
+#if HAVE_SYS_RESOURCE_H
 #include <sys/resource.h>
 #endif
 #if HAVE_STDINT_H
-- 
2.6.4