From 55499933be7857642d970d32f359e765ff4a2cab Mon Sep 17 00:00:00 2001 From: irungentoo Date: Tue, 10 Sep 2013 17:15:26 -0400 Subject: [PATCH] Fixed building with NaCl. --- auto_tests/crypto_test.c | 4 ++++ auto_tests/friends_test.c | 4 ++++ auto_tests/messenger_test.c | 4 ++++ other/DHT_bootstrap.c | 3 +++ other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c | 4 ++++ toxcore/group_chats.c | 4 ++++ 6 files changed, 23 insertions(+) diff --git a/auto_tests/crypto_test.c b/auto_tests/crypto_test.c index 683cb106..09b5a982 100644 --- a/auto_tests/crypto_test.c +++ b/auto_tests/crypto_test.c @@ -1,3 +1,7 @@ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "../toxcore/net_crypto.h" #include #include diff --git a/auto_tests/friends_test.c b/auto_tests/friends_test.c index 0426c18d..8a22aa87 100644 --- a/auto_tests/friends_test.c +++ b/auto_tests/friends_test.c @@ -18,6 +18,10 @@ * times. This is used both to ensure that we don't loop forever on a broken build, * and that we don't get too slow with messaging. The current time is 15 seconds. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "../toxcore/friend_requests.h" #include "../toxcore/Messenger.h" #include diff --git a/auto_tests/messenger_test.c b/auto_tests/messenger_test.c index d067a014..604e282c 100644 --- a/auto_tests/messenger_test.c +++ b/auto_tests/messenger_test.c @@ -10,6 +10,10 @@ * checking that status changes are received, messages can be sent, etc. * All of that is done in a separate test, with two local clients running. */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "../toxcore/Messenger.h" #include "../toxcore/Lossless_UDP.h" #include diff --git a/other/DHT_bootstrap.c b/other/DHT_bootstrap.c index a42545b1..654b759f 100644 --- a/other/DHT_bootstrap.c +++ b/other/DHT_bootstrap.c @@ -26,6 +26,9 @@ * along with Tox. If not, see . * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include "../toxcore/DHT.h" #include "../toxcore/friend_requests.h" diff --git a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c index e7507613..0ef1f314 100644 --- a/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c +++ b/other/bootstrap_serverdaemon/DHT_bootstrap_daemon.c @@ -32,6 +32,10 @@ #include /* htons() */ #include /* strcpy() */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "../../toxcore/DHT.h" #include "../../toxcore/friend_requests.h" diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 3c134348..4581eb38 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c @@ -22,6 +22,10 @@ * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif + #include "group_chats.h"