summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/wee-debug.h2
-rw-r--r--src/core/wee-util.h1
-rw-r--r--src/plugins/weechat-plugin.h1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/core/wee-debug.h b/src/core/wee-debug.h
index b83803eef..617000973 100644
--- a/src/core/wee-debug.h
+++ b/src/core/wee-debug.h
@@ -20,6 +20,8 @@
#ifndef WEECHAT_DEBUG_H
#define WEECHAT_DEBUG_H
+#include <sys/time.h>
+
struct t_gui_window_tree;
extern void debug_sigsegv ();
diff --git a/src/core/wee-util.h b/src/core/wee-util.h
index e64aebbed..d38d3084b 100644
--- a/src/core/wee-util.h
+++ b/src/core/wee-util.h
@@ -21,6 +21,7 @@
#define WEECHAT_UTIL_H
#include <time.h>
+#include <sys/time.h>
#ifdef HAVE_SYS_RESOURCE_H
struct t_rlimit_resource
diff --git a/src/plugins/weechat-plugin.h b/src/plugins/weechat-plugin.h
index b065b7eee..a261d8f44 100644
--- a/src/plugins/weechat-plugin.h
+++ b/src/plugins/weechat-plugin.h
@@ -28,6 +28,7 @@ extern "C" {
#include <stddef.h>
#include <time.h>
+#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>