* [Buildroot] [PATCH] xinetd: Patch configure script to fix rlim_t test
@ 2014-09-16 15:42 Maarten ter Huurne
2014-09-21 18:10 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Maarten ter Huurne @ 2014-09-16 15:42 UTC (permalink / raw)
To: buildroot
Fixes build with musl libc.
Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
---
package/xinetd/xinetd-005-configure-rlim_t.patch | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
create mode 100644 package/xinetd/xinetd-005-configure-rlim_t.patch
diff --git a/package/xinetd/xinetd-005-configure-rlim_t.patch b/package/xinetd/xinetd-005-configure-rlim_t.patch
new file mode 100644
index 0000000..e1cb48a
--- /dev/null
+++ b/package/xinetd/xinetd-005-configure-rlim_t.patch
@@ -0,0 +1,18 @@
+Have the configure script look for rlim_t in <sys/resource.h>
+
+That's where POSIX says it should be. Some libcs will include its
+definition via <sys/types.h> as well, but musl doesn't.
+
+Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
+
+--- xinetd-2.3.15.orig/configure 2007-09-20 16:58:27.000000000 +0200
++++ xinetd-2.3.15/configure 2014-09-16 17:20:22.787665449 +0200
+@@ -7909,7 +7909,7 @@
+ cat confdefs.h >>conftest.$ac_ext
+ cat >>conftest.$ac_ext <<_ACEOF
+ /* end confdefs.h. */
+-#include <sys/types.h>
++#include <sys/resource.h>
+ #if STDC_HEADERS
+ #include <stdlib.h>
+ #endif
--
1.8.4.5
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] xinetd: Patch configure script to fix rlim_t test
2014-09-16 15:42 [Buildroot] [PATCH] xinetd: Patch configure script to fix rlim_t test Maarten ter Huurne
@ 2014-09-21 18:10 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-09-21 18:10 UTC (permalink / raw)
To: buildroot
Dear Maarten ter Huurne,
On Tue, 16 Sep 2014 17:42:21 +0200, Maarten ter Huurne wrote:
> Fixes build with musl libc.
>
> Signed-off-by: Maarten ter Huurne <maarten@treewalker.org>
> ---
> package/xinetd/xinetd-005-configure-rlim_t.patch | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
> create mode 100644 package/xinetd/xinetd-005-configure-rlim_t.patch
I've renamed the patch to use the 004 sequence number, which wasn't
used.
Applied, thanks a lot! Please don't forget to submit upstream if it's
not already done.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-09-21 18:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-16 15:42 [Buildroot] [PATCH] xinetd: Patch configure script to fix rlim_t test Maarten ter Huurne
2014-09-21 18:10 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox