Hi,

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

H.J.
---
2012-02-02  H.J. Lu  <[email protected]>

        * 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


------------------------------------------------------------------------------
Try before you buy = See our experts in action!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-dev2
_______________________________________________
Strace-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/strace-devel

Reply via email to