Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
8143d42c
Commit
8143d42c
authored
Jun 15, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Enable kqueue support on Mac OS >= 10.5 now that it's fixed.
parent
6076485f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
fd.c
server/fd.c
+13
-2
No files found.
server/fd.c
View file @
8143d42c
...
...
@@ -55,6 +55,9 @@
#ifdef HAVE_SYS_STATFS_H
#include <sys/statfs.h>
#endif
#ifdef HAVE_SYS_SYSCTL_H
#include <sys/sysctl.h>
#endif
#ifdef HAVE_SYS_EVENT_H
#include <sys/event.h>
#undef LIST_INIT
...
...
@@ -518,9 +521,17 @@ static int kqueue_fd = -1;
static
inline
void
init_epoll
(
void
)
{
#ifndef __APPLE__
/* kqueue support is broken in the MacOS kernel so we can't use it */
kqueue_fd
=
kqueue
();
#ifdef __APPLE__
/* kqueue support is broken in Mac OS < 10.5 */
int
mib
[
2
];
char
release
[
32
];
size_t
len
=
sizeof
(
release
);
mib
[
0
]
=
CTL_KERN
;
mib
[
1
]
=
KERN_OSRELEASE
;
if
(
sysctl
(
mib
,
2
,
release
,
&
len
,
NULL
,
0
)
==
-
1
)
return
;
if
(
atoi
(
release
)
<
9
)
return
;
#endif
kqueue_fd
=
kqueue
();
}
static
inline
void
set_fd_epoll_events
(
struct
fd
*
fd
,
int
user
,
int
events
)
...
...
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