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
1399d14e
Commit
1399d14e
authored
Dec 24, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
libport: Avoid including winsock2.h.
parent
ae133b80
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
9 deletions
+20
-9
configure
configure
+0
-2
configure.ac
configure.ac
+0
-1
config.h.in
include/config.h.in
+0
-3
poll.c
libs/port/poll.c
+20
-3
No files found.
configure
View file @
1399d14e
...
@@ -7438,7 +7438,6 @@ done
...
@@ -7438,7 +7438,6 @@ done
for
ac_header
in
\
for
ac_header
in
\
AudioUnit/AudioUnit.h
\
AudioUnit/AudioUnit.h
\
Carbon/Carbon.h
\
Carbon/Carbon.h
\
...
@@ -7552,7 +7551,6 @@ for ac_header in \
...
@@ -7552,7 +7551,6 @@ for ac_header in \
termios.h
\
termios.h
\
unistd.h
\
unistd.h
\
utime.h
\
utime.h
\
winsock2.h
\
valgrind/memcheck.h
\
valgrind/memcheck.h
\
valgrind/valgrind.h
valgrind/valgrind.h
...
...
configure.ac
View file @
1399d14e
...
@@ -351,7 +351,6 @@ AC_CHECK_HEADERS(\
...
@@ -351,7 +351,6 @@ AC_CHECK_HEADERS(\
termios.h \
termios.h \
unistd.h \
unistd.h \
utime.h \
utime.h \
winsock2.h \
valgrind/memcheck.h \
valgrind/memcheck.h \
valgrind/valgrind.h
valgrind/valgrind.h
)
)
...
...
include/config.h.in
View file @
1399d14e
...
@@ -966,9 +966,6 @@
...
@@ -966,9 +966,6 @@
/* Define to 1 if you have the `waitpid' function. */
/* Define to 1 if you have the `waitpid' function. */
#undef HAVE_WAITPID
#undef HAVE_WAITPID
/* Define to 1 if you have the <winsock2.h> header file. */
#undef HAVE_WINSOCK2_H
/* Define to 1 if you have the <X11/extensions/shape.h> header file. */
/* Define to 1 if you have the <X11/extensions/shape.h> header file. */
#undef HAVE_X11_EXTENSIONS_SHAPE_H
#undef HAVE_X11_EXTENSIONS_SHAPE_H
...
...
libs/port/poll.c
View file @
1399d14e
...
@@ -23,9 +23,6 @@
...
@@ -23,9 +23,6 @@
#ifndef HAVE_POLL
#ifndef HAVE_POLL
#ifdef HAVE_WINSOCK2_H
#include <winsock2.h>
#endif
#ifdef HAVE_SYS_TIME_H
#ifdef HAVE_SYS_TIME_H
#include <sys/time.h>
#include <sys/time.h>
#endif
#endif
...
@@ -33,6 +30,26 @@
...
@@ -33,6 +30,26 @@
#include <unistd.h>
#include <unistd.h>
#endif
#endif
/* we can't include winsock2.h here so we have to duplicate the definitions for Windows */
#if defined(__MINGW32__) || defined(_MSC_VER)
#define FD_SETSIZE 64
typedef
struct
{
unsigned
int
fd_count
;
int
fd_array
[
FD_SETSIZE
];
/* an array of SOCKETs */
}
fd_set
;
#define FD_ZERO(set) ((set)->fd_count = 0)
#define FD_ISSET(fd, set) __WSAFDIsSet((fd), (set))
#define FD_SET(fd, set) do { if ((set)->fd_count < FD_SETSIZE) (set)->fd_array[(set)->fd_count++]=(fd); } while(0)
int
__stdcall
select
(
int
,
fd_set
*
,
fd_set
*
,
fd_set
*
,
const
struct
timeval
*
);
int
__stdcall
__WSAFDIsSet
(
int
,
fd_set
*
);
#endif
int
poll
(
struct
pollfd
*
fds
,
unsigned
int
count
,
int
timeout
)
int
poll
(
struct
pollfd
*
fds
,
unsigned
int
count
,
int
timeout
)
{
{
fd_set
read_set
,
write_set
,
except_set
;
fd_set
read_set
,
write_set
,
except_set
;
...
...
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