diff options
author | bde <bde@FreeBSD.org> | 1997-11-18 08:07:37 +0000 |
---|---|---|
committer | bde <bde@FreeBSD.org> | 1997-11-18 08:07:37 +0000 |
commit | eca4cb0b5894b0fc3caaf118395e3489418a4aa9 (patch) | |
tree | 865e6a9c2ba41fc71d47186a2335f6ecb706de13 /sys | |
parent | f87bd4435e05f7c9c990af218b042914a771c8b1 (diff) | |
download | FreeBSD-src-eca4cb0b5894b0fc3caaf118395e3489418a4aa9.zip FreeBSD-src-eca4cb0b5894b0fc3caaf118395e3489418a4aa9.tar.gz |
Don't #include <sys/types.h>. I mistakenly #included it unconditionally
to fix some broken application. Application breakage is now hidden by a
recently introduced wrong #include of <sys/types.h> in <sys/time.h>.
<sys/time.h> is a prerequisite for <sys/resource.h>, so the <sys/types.h>
prereqisite is automatically supplied.
Cast RLIM_INFINITY to the correct (signed) type.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/sys/resource.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/sys/resource.h b/sys/sys/resource.h index b053aef..4e41193 100644 --- a/sys/sys/resource.h +++ b/sys/sys/resource.h @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)resource.h 8.4 (Berkeley) 1/9/95 - * $Id$ + * $Id: resource.h,v 1.7 1997/02/22 09:45:46 peter Exp $ */ #ifndef _SYS_RESOURCE_H_ @@ -90,9 +90,7 @@ struct rusage { #define RLIM_NLIMITS 9 /* number of resource limits */ -#include <sys/types.h> /* XXX for quad_t */ - -#define RLIM_INFINITY (((u_quad_t)1 << 63) - 1) +#define RLIM_INFINITY ((rlim_t)(((u_quad_t)1 << 63) - 1)) struct orlimit { int32_t rlim_cur; /* current (soft) limit */ |