summaryrefslogtreecommitdiff
path: root/include/sys
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2015-05-28 15:37:23 -0400
committerRich Felker <dalias@aerifal.cx>2015-05-28 15:37:23 -0400
commitb6e7c664677ab7c77f183b8c41105f2be519800c (patch)
tree95b6c42ba1322406758ca839c0b79ac00beba29d /include/sys
parentfc431d3f76bb9bde34a89e4a3e4d0c27de959855 (diff)
downloadmusl-b6e7c664677ab7c77f183b8c41105f2be519800c.tar.gz
musl-b6e7c664677ab7c77f183b8c41105f2be519800c.tar.bz2
musl-b6e7c664677ab7c77f183b8c41105f2be519800c.tar.xz
musl-b6e7c664677ab7c77f183b8c41105f2be519800c.zip
add missing legacy LFS64 macros in sys/resource.h
based on patch by Felix Janda, with RLIM64_SAVED_CUR and RLIM64_SAVED_MAX added for completeness.
Diffstat (limited to 'include/sys')
-rw-r--r--include/sys/resource.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sys/resource.h b/include/sys/resource.h
index 58392d64..cc33de74 100644
--- a/include/sys/resource.h
+++ b/include/sys/resource.h
@@ -96,6 +96,9 @@ int prlimit(pid_t, int, const struct rlimit *, struct rlimit *);
#define RLIM_NLIMITS RLIMIT_NLIMITS
#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+#define RLIM64_INFINITY RLIM_INFINITY
+#define RLIM64_SAVED_CUR RLIM_SAVED_CUR
+#define RLIM64_SAVED_MAX RLIM_SAVED_MAX
#define getrlimit64 getrlimit
#define setrlimit64 setrlimit
#define rlimit64 rlimit