Package: glib2.0 / 2.42.1-1

13_sparc_prlimit_prototype.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- a/configure.ac
+++ b/configure.ac
@@ -966,6 +966,9 @@
 AC_CHECK_FUNCS(getmntent_r setmntent endmntent hasmntopt getfsstat getvfsstat fallocate)
 case $host_os in aix*) ac_cv_func_splice=no ;; esac # AIX splice() is something else
 AC_CHECK_FUNCS(splice)
+AC_CHECK_DECLS([prlimit], [], [], [[
+#include <sys/time.h>
+#include <sys/resource.h>]])
 AC_CHECK_FUNCS(prlimit)
 
 # To avoid finding a compatibility unusable statfs, which typically
--- a/glib/tests/thread.c
+++ b/glib/tests/thread.c
@@ -127,7 +127,7 @@
 static void
 test_thread4 (void)
 {
-#ifdef HAVE_PRLIMIT
+#if HAVE_DECL_PRLIMIT && defined(HAVE_PRLIMIT)
   struct rlimit ol, nl;
   GThread *thread;
   GError *error;