xref: /OK3568_Linux_fs/buildroot/package/xinetd/0004-configure-rlim_t.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunHave the configure script look for rlim_t in <sys/resource.h>
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThat's where POSIX says it should be. Some libcs will include its
4*4882a593Smuzhiyundefinition via <sys/types.h> as well, but musl doesn't.
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunSigned-off-by: Maarten ter Huurne <maarten@treewalker.org>
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun--- xinetd-2.3.15.orig/configure	2007-09-20 16:58:27.000000000 +0200
9*4882a593Smuzhiyun+++ xinetd-2.3.15/configure	2014-09-16 17:20:22.787665449 +0200
10*4882a593Smuzhiyun@@ -7909,7 +7909,7 @@
11*4882a593Smuzhiyun cat confdefs.h >>conftest.$ac_ext
12*4882a593Smuzhiyun cat >>conftest.$ac_ext <<_ACEOF
13*4882a593Smuzhiyun /* end confdefs.h.  */
14*4882a593Smuzhiyun-#include <sys/types.h>
15*4882a593Smuzhiyun+#include <sys/resource.h>
16*4882a593Smuzhiyun #if STDC_HEADERS
17*4882a593Smuzhiyun #include <stdlib.h>
18*4882a593Smuzhiyun #endif
19