X-Git-Url: https://git.saurik.com/apple/libc.git/blobdiff_plain/224c70764cab4e0e39a26aaf3ad3016552f62f55..34e8f8296870d0e8695f90e1a54240a589d41312:/ppc/gen/getmcontext.c diff --git a/ppc/gen/getmcontext.c b/ppc/gen/getmcontext.c index ff327f7..ee90fe3 100644 --- a/ppc/gen/getmcontext.c +++ b/ppc/gen/getmcontext.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2004 Apple Computer, Inc. All rights reserved. + * Copyright (c) 2004, 2008 Apple Inc. All rights reserved. * * @APPLE_LICENSE_HEADER_START@ * @@ -57,9 +57,9 @@ getmcontext(ucontext_t *uctx, void *sp) } if (stacksize == 0) { /* main thread doesn't have pthread stack size */ - rlim_t rlim; + struct rlimit rlim; if (0 == getrlimit(RLIMIT_STACK, &rlim)) - stacksize = rlim; + stacksize = rlim.rlim_cur; } uctx->uc_stack.ss_size = stacksize;