Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
GSoC
GSoC2018
macOS
vlc
Commits
af1be3f5
Commit
af1be3f5
authored
Aug 20, 2011
by
Rémi Denis-Courmont
Browse files
Check for struct pollfd separately from poll, needed for WinNT 6
parent
3a08aa70
Changes
2
Hide whitespace changes
Inline
Side-by-side
configure.ac
View file @
af1be3f5
...
...
@@ -596,6 +596,17 @@ AC_SEARCH_LIBS(poll, [poll], [
])
])
dnl Check for struct pollfd
AC_CHECK_TYPES([struct pollfd],,,
[#include <sys/types.h>
#if HAVE_POLL
# include <poll.h>
#elif defined (WIN32)
# include <winsock2.h>
#endif
])
dnl Check for connect
LIBS_save="$LIBS"
SOCKET_LIBS=""
AC_SEARCH_LIBS(connect, [socket], [
...
...
include/vlc_fixups.h
View file @
af1be3f5
...
...
@@ -252,7 +252,7 @@ void swab (const void *, void *, ssize_t);
# define inet_ntop vlc_inet_ntop
#endif
#ifndef HAVE_POLL
#ifndef HAVE_
STRUCT_
POLL
FD
enum
{
POLLIN
=
1
,
...
...
@@ -269,7 +269,8 @@ struct pollfd
unsigned
events
;
unsigned
revents
;
};
#endif
#ifndef HAVE_POLL
# define poll(a, b, c) vlc_poll(a, b, c)
#elif defined (HAVE_MAEMO)
# include <poll.h>
...
...
Write
Preview
Supports
Markdown
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