Commit 1ec253d2 authored by Dimitrie O. Paun's avatar Dimitrie O. Paun Committed by Alexandre Julliard

Supply dummy getrlimit if absent.

parent ec1ece11
......@@ -736,6 +736,7 @@ AC_CHECK_FUNCS(\
getpagesize \
getprotobyname \
getprotobynumber \
getrlimit \
getservbyport \
getsockopt \
inet_network \
......
......@@ -200,6 +200,9 @@
/* Define if you have the getprotobynumber function. */
#undef HAVE_GETPROTOBYNUMBER
/* Define if you have the getrlimit function. */
#undef HAVE_GETRLIMIT
/* Define if you have the getservbyport function. */
#undef HAVE_GETSERVBYPORT
......
......@@ -13,6 +13,17 @@
/* Types */
#ifndef HAVE_GETRLIMIT
#define RLIMIT_STACK 3
typedef int rlim_t;
struct rlimit
{
rlim_t rlim_cur;
rlim_t rlim_max;
};
int getrlimit (int resource, struct rlimit *rlim);
#endif /* HAVE_GETRLIMIT */
#if !defined(HAVE_GETNETBYADDR) && !defined(HAVE_GETNETBYNAME)
struct netent {
char *n_name;
......
......@@ -372,6 +372,16 @@ int lstat(const char *file_name, struct stat *buf)
/***********************************************************************
* getrlimit
*/
#ifndef HAVE_GETRLIMIT
int getrlimit (int resource, struct rlimit *rlim)
{
return -1; /* FAIL */
}
#endif /* HAVE_GETRLIMIT */
/***********************************************************************
* wine_anon_mmap
*
* Portable wrapper for anonymous mmaps
......
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