]> granicus.if.org Git - zfs/commitdiff
Linux 2.6.36 compat, wrap RLIM64_INFINITY
authorBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Nov 2010 18:34:10 +0000 (10:34 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 9 Nov 2010 21:28:55 +0000 (13:28 -0800)
As of linux-2.6.36 RLIM64_INFINITY is defined in linux/resource.h.
This is handled by conditionally defining RLIM64_INFINITY in the
SPL only when the kernel does not provide it.

include/sys/sysmacros.h

index d9647b3cd5f8b85edbdbefaf7fd61976aeb6c0c3..210dfb5c598ae26076645614fe53454a04fa5ae9 100644 (file)
@@ -83,8 +83,9 @@
 #define _NOTE(x)
 #define is_system_labeled()            0
 
-
-#define RLIM64_INFINITY                        RLIM_INFINITY
+#ifndef RLIM64_INFINITY
+#define RLIM64_INFINITY                        (~0ULL)
+#endif
 
 /* 0..MAX_PRIO-1:              Process priority
  * 0..MAX_RT_PRIO-1:           RT priority tasks