svn commit: r301081 - head/sys/sys

Ed Schouten ed at FreeBSD.org
Tue May 31 21:34:04 UTC 2016


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 */
 
 


More information about the svn-src-all mailing list