Fix glibc 2.15 build.
glibc 2.15 has prlimit64, has an unsetenv that's declared nonnull, and hasn't fixed the problems we were having trying to use the POSIX strerror_r in C++ code. Change-Id: I834356a385e5ae55500bd86781691b6c1c9c8300
This commit is contained in:
@@ -18,17 +18,6 @@
|
||||
|
||||
#include <sys/resource.h>
|
||||
|
||||
#if defined(__GLIBC__)
|
||||
/* The host glibc we're currently building with doesn't have prlimit64 yet. */
|
||||
static int prlimit64(pid_t, int resource, const struct rlimit64* new_limit, struct rlimit64* old_limit) {
|
||||
if (new_limit != NULL) {
|
||||
return setrlimit64(resource, new_limit);
|
||||
} else {
|
||||
return getrlimit64(resource, old_limit);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
TEST(sys_resource, smoke) {
|
||||
#if defined(__LP64__) || defined(__GLIBC__)
|
||||
ASSERT_EQ(sizeof(rlimit), sizeof(rlimit64));
|
||||
|
||||
Reference in New Issue
Block a user