Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
1ec253d2
Commit
1ec253d2
authored
Dec 01, 2000
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Dec 01, 2000
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Supply dummy getrlimit if absent.
parent
ec1ece11
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
25 additions
and
0 deletions
+25
-0
configure
configure
+0
-0
configure.in
configure.in
+1
-0
config.h.in
include/config.h.in
+3
-0
port.h
include/wine/port.h
+11
-0
port.c
library/port.c
+10
-0
No files found.
configure
View file @
1ec253d2
This diff is collapsed.
Click to expand it.
configure.in
View file @
1ec253d2
...
...
@@ -736,6 +736,7 @@ AC_CHECK_FUNCS(\
getpagesize \
getprotobyname \
getprotobynumber \
getrlimit \
getservbyport \
getsockopt \
inet_network \
...
...
include/config.h.in
View file @
1ec253d2
...
...
@@ -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
...
...
include/wine/port.h
View file @
1ec253d2
...
...
@@ -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
;
...
...
library/port.c
View file @
1ec253d2
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment