summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2015-05-01 09:54:07 +0200
committerSébastien Helleu <flashcode@flashtux.org>2015-05-01 09:54:07 +0200
commit8d25cd5d34dc16e3651dd9711b3c5470e11906d0 (patch)
treeebb7da3e7b58671074bfaa4776af8a88defe4f14
parent90bd568a619b0a78cb6c206d883f35b8631c122f (diff)
downloadweechat-8d25cd5d34dc16e3651dd9711b3c5470e11906d0.zip
core: fix compilation on Cygwin
The header sys/select.h is now required for select() function.
-rw-r--r--src/core/wee-hook.c1
-rw-r--r--src/core/wee-network.c1
-rw-r--r--src/gui/curses/gui-curses-main.c1
3 files changed, 3 insertions, 0 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index d9239a9e6..7a47b951f 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -32,6 +32,7 @@
#include <time.h>
#include <sys/types.h>
#include <sys/wait.h>
+#include <sys/select.h>
#include <signal.h>
#include <fcntl.h>
#include <errno.h>
diff --git a/src/core/wee-network.c b/src/core/wee-network.c
index b4f501bd1..fd981190c 100644
--- a/src/core/wee-network.c
+++ b/src/core/wee-network.c
@@ -39,6 +39,7 @@
#include <string.h>
#include <sys/types.h>
#include <sys/socket.h>
+#include <sys/select.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
diff --git a/src/gui/curses/gui-curses-main.c b/src/gui/curses/gui-curses-main.c
index 466659104..e01fa20bf 100644
--- a/src/gui/curses/gui-curses-main.c
+++ b/src/gui/curses/gui-curses-main.c
@@ -29,6 +29,7 @@
#include <string.h>
#include <signal.h>
#include <time.h>
+#include <sys/select.h>
#include "../../core/weechat.h"
#include "../../core/wee-command.h"