[PATCH 6/7] Define RLIM64_INFINITY only if not defined

H.J. Lu hongjiu.lu at intel.com
Fri Feb 3 18:17:01 UTC 2012


Hi,

This patch defines RLIM64_INFINITY only if it isn't defined.

H.J.
---
2012-02-02  H.J. Lu  <hongjiu.lu at intel.com>

	* resource.c (RLIM64_INFINITY): Define only if it isn't defined.

diff --git a/resource.c b/resource.c
index 199ddf8..f83ced0 100644
--- a/resource.c
+++ b/resource.c
@@ -49,7 +49,9 @@
 
 #define rlimit64 rlimit			/* Ugly hack */
 #define rlim64_t rlim_t			/* Ugly hack */
+#ifndef RLIM64_INFINITY
 #define RLIM64_INFINITY RLIM_INFINITY	/* You guessed it */
+#endif
 
 #define sys_getrlimit64	sys_getrlimit
 #define sys_setrlimit64	sys_setrlimit
-- 
1.7.6.5





More information about the Strace-devel mailing list