projects
/
m6w6
/
libmemcached
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
Fixes a few more files that did not have a good config.h
[m6w6/libmemcached]
/
poll
/
poll.c
diff --git
a/poll/poll.c
b/poll/poll.c
index c5aa1115918a999bb2cd0810450bf2a5d2917bbf..28156d1f7bd1163116618eed9cf17584a7182ade 100644
(file)
--- a/
poll/poll.c
+++ b/
poll/poll.c
@@
-8,10
+8,18
@@
* Summary: Implementation of poll by using select
*
*/
* Summary: Implementation of poll by using select
*
*/
-#include "config.h"
+#include "mem_config.h"
+
+#if defined(WIN32) || defined(__MINGW32__)
+# include <winsock2.h>
+# include <ws2tcpip.h>
+#endif
+
#include <sys/time.h>
#include <strings.h>
#include <sys/time.h>
#include <strings.h>
+#include "poll/poll.h"
+
int poll(struct pollfd fds[], nfds_t nfds, int tmo)
{
fd_set readfds, writefds, errorfds;
int poll(struct pollfd fds[], nfds_t nfds, int tmo)
{
fd_set readfds, writefds, errorfds;