From: Brian Behlendorf Date: Tue, 9 Nov 2010 18:34:10 +0000 (-0800) Subject: Linux 2.6.36 compat, wrap RLIM64_INFINITY X-Git-Tag: zfs-0.8.0-rc1~152^2~523 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a50cede3880ca0f7f7f10acc01bebd8617fc48ad;p=zfs Linux 2.6.36 compat, wrap RLIM64_INFINITY 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. --- diff --git a/include/sys/sysmacros.h b/include/sys/sysmacros.h index d9647b3cd..210dfb5c5 100644 --- a/include/sys/sysmacros.h +++ b/include/sys/sysmacros.h @@ -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