Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 May 2016 21:34:03 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r301081 - head/sys/sys
Message-ID:  <201605312134.u4VLY3QO008954@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: ed
Date: Tue May 31 21:34:02 2016
New Revision: 301081
URL: https://svnweb.freebsd.org/changeset/base/301081

Log:
  Make RLIM_INFINITY usable without including <stdint.h>.
  
  By using __uint64_t instead of uint64_t, this constant can also be used
  if <sys/resource.h> is included on its own.

Modified:
  head/sys/sys/resource.h

Modified: head/sys/sys/resource.h
==============================================================================
--- head/sys/sys/resource.h	Tue May 31 21:23:57 2016	(r301080)
+++ head/sys/sys/resource.h	Tue May 31 21:34:02 2016	(r301081)
@@ -108,7 +108,7 @@ struct __wrusage {
 
 #define	RLIM_NLIMITS	15		/* number of resource limits */
 
-#define	RLIM_INFINITY	((rlim_t)(((uint64_t)1 << 63) - 1))
+#define	RLIM_INFINITY	((rlim_t)(((__uint64_t)1 << 63) - 1))
 /* XXX Missing: RLIM_SAVED_MAX, RLIM_SAVED_CUR */
 
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605312134.u4VLY3QO008954>