Commit 892780c3 authored by Ralf Habacker's avatar Ralf Habacker

* configure.in, cmake/ConfigureChecks.cmake: added check for setrlimit.

* test/test-segfault.c: only include setrlimit stuff only when available.
parent 42fe5c93
2007-03-08 Ralf Habacker <ralf.habacker@freenet.de>
* configure.in, cmake/ConfigureChecks.cmake: added check
for setrlimit.
* test/test-segfault.c: only include setrlimit stuff only
when available.
2007-03-07 Ralf Habacker <ralf.habacker@freenet.de>
* test/test-segfault.c: unix compile fix.
......
......@@ -529,7 +529,7 @@ fi
AC_CHECK_LIB(socket,socket)
AC_CHECK_FUNC(gethostbyname,,[AC_CHECK_LIB(nsl,gethostbyname)])
AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf)
AC_CHECK_FUNCS(vsnprintf vasprintf nanosleep usleep poll setenv unsetenv socketpair getgrouplist fpathconf setrlimit)
AC_MSG_CHECKING(for dirfd)
AC_TRY_LINK([
......
......@@ -3,8 +3,7 @@
#include <stdlib.h>
#include <signal.h>
#if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
#include <sys/time.h>
#ifdef HAVE_SETRLIMIT
#include <sys/resource.h>
#endif
......@@ -13,7 +12,7 @@ main (int argc, char **argv)
{
char *p;
#if !defined(DBUS_WIN) && !defined(DBUS_WINCE)
#if HAVE_SETRLIMIT
struct rlimit r = { 0, };
getrlimit (RLIMIT_CORE, &r);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment