1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 13:56:37 +02:00

tests: fix compilation of tests on FreeBSD 11

Some includes were missing in .h files, and the tests must be linked
with intl and execinfo on FreeBSD.
This commit is contained in:
Sébastien Helleu
2017-01-13 20:57:59 +01:00
parent b547bf6bbb
commit 1361602ea5
27 changed files with 52 additions and 0 deletions
+1
View File
@@ -20,6 +20,7 @@
#ifndef WEECHAT_EXEC_H
#define WEECHAT_EXEC_H 1
#include <unistd.h>
#include <time.h>
#define weechat_plugin weechat_exec_plugin
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_IRC_CHANNEL_H
#define WEECHAT_IRC_CHANNEL_H 1
#include <time.h>
#define IRC_CHANNEL_DEFAULT_CHANTYPES "#&+!"
/* channel types */
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_IRC_CTCP_H
#define WEECHAT_IRC_CTCP_H 1
#include <time.h>
struct t_irc_server;
struct t_irc_channel;
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_IRC_PROTOCOL_H
#define WEECHAT_IRC_PROTOCOL_H 1
#include <time.h>
#define IRC_PROTOCOL_CALLBACK(__command) \
int \
irc_protocol_cb_##__command (struct t_irc_server *server, \
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_IRC_RAW_H
#define WEECHAT_IRC_RAW_H 1
#include <time.h>
#define IRC_RAW_BUFFER_NAME "irc_raw"
#define IRC_RAW_PREFIX_RECV "-->"
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_IRC_REDIRECT_H
#define WEECHAT_IRC_REDIRECT_H 1
#include <time.h>
#define IRC_REDIRECT_TIMEOUT_DEFAULT 60
struct t_irc_server;
+1
View File
@@ -21,6 +21,7 @@
#ifndef WEECHAT_IRC_SERVER_H
#define WEECHAT_IRC_SERVER_H 1
#include <time.h>
#include <sys/time.h>
#include <regex.h>
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_PLUGIN_API_H
#define WEECHAT_PLUGIN_API_H 1
#include <time.h>
struct t_plugin_api_hdata
{
char *name; /* hdata name */
+2
View File
@@ -21,6 +21,8 @@
#ifndef WEECHAT_PLUGIN_SCRIPT_API_H
#define WEECHAT_PLUGIN_SCRIPT_API_H 1
#include <time.h>
extern void plugin_script_api_charset_set (struct t_plugin_script *script,
const char *charset);
extern struct t_config_file *plugin_script_api_config_new (struct t_weechat_plugin *weechat_plugin,
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_RELAY_CLIENT_H
#define WEECHAT_RELAY_CLIENT_H 1
#include <time.h>
#ifdef HAVE_GNUTLS
#include <gnutls/gnutls.h>
#endif /* HAVE_GNUTLS */
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_RELAY_RAW_H
#define WEECHAT_RELAY_RAW_H 1
#include <time.h>
#include "relay-client.h"
#define RELAY_RAW_BUFFER_NAME "relay_raw"
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_RELAY_SERVER_H
#define WEECHAT_RELAY_SERVER_H 1
#include <time.h>
#ifdef HAVE_GNUTLS
#define RELAY_SERVER_GNUTLS_DH_BITS 1024
#endif /* HAVE_GNUTLS */
@@ -20,6 +20,8 @@
#ifndef WEECHAT_RELAY_WEECHAT_MSG_H
#define WEECHAT_RELAY_WEECHAT_MSG_H 1
#include <time.h>
struct t_relay_weechat_nicklist;
#define RELAY_WEECHAT_MSG_INITIAL_ALLOC 4096
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_SCRIPT_REPO_H
#define WEECHAT_SCRIPT_REPO_H 1
#include <time.h>
/* status for script */
#define SCRIPT_STATUS_INSTALLED 1
#define SCRIPT_STATUS_AUTOLOADED 2
+2
View File
@@ -20,6 +20,8 @@
#ifndef WEECHAT_TRIGGER_CALLBACK_H
#define WEECHAT_TRIGGER_CALLBACK_H 1
#include <time.h>
#define TRIGGER_CALLBACK_CB_INIT(__rc) \
struct t_trigger *trigger; \
struct t_hashtable *pointers, *extra_vars; \
+1
View File
@@ -26,6 +26,7 @@
extern "C" {
#endif /* __cplusplus */
#include <time.h>
#include <sys/types.h>
#include <sys/socket.h>
+2
View File
@@ -21,7 +21,9 @@
#define WEECHAT_XFER_H 1
#include <unistd.h>
#include <time.h>
#include <gcrypt.h>
#include <sys/socket.h>
#define weechat_plugin weechat_xfer_plugin
#define XFER_PLUGIN_NAME "xfer"