gdb: disable libbfd installation
[oi-userland.git] / components / runtime / openjdk-8 / patches / 0029-patch-hotspot_src_os_posix_vm_os__posix.cpp.patch
blobee05794bc33a0a8d1fdacc19b605aa0baef5dc7b
1 $NetBSD: patch-hotspot_src_os_posix_vm_os__posix.cpp,v 1.3 2015/07/03 20:40:59 fhajny Exp $
3 rlim_t fixes.
5 --- hotspot/src/os/posix/vm/os_posix.cpp.orig
6 +++ hotspot/src/os/posix/vm/os_posix.cpp
7 @@ -190,30 +190,30 @@
9 st->print(" STACK ");
10 getrlimit(RLIMIT_STACK, &rlim);
11 - if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
12 + if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
13 else st->print("%uk", rlim.rlim_cur >> 10);
15 st->print(", CORE ");
16 getrlimit(RLIMIT_CORE, &rlim);
17 - if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
18 + if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
19 else st->print("%uk", rlim.rlim_cur >> 10);
21 // Isn't there on solaris
22 #if !defined(TARGET_OS_FAMILY_solaris) && !defined(TARGET_OS_FAMILY_aix)
23 st->print(", NPROC ");
24 getrlimit(RLIMIT_NPROC, &rlim);
25 - if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
26 + if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
27 else st->print("%d", rlim.rlim_cur);
28 #endif
30 st->print(", NOFILE ");
31 getrlimit(RLIMIT_NOFILE, &rlim);
32 - if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
33 + if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
34 else st->print("%d", rlim.rlim_cur);
36 st->print(", AS ");
37 getrlimit(RLIMIT_AS, &rlim);
38 - if (rlim.rlim_cur == RLIM_INFINITY) st->print("infinity");
39 + if (rlim.rlim_cur == (rlim_t)RLIM_INFINITY) st->print("infinity");
40 else st->print("%uk", rlim.rlim_cur >> 10);
41 st->cr();