Fixed building with NaCl.

This commit is contained in:
irungentoo 2013-09-10 17:15:26 -04:00
parent 261d78b862
commit 55499933be
6 changed files with 23 additions and 0 deletions

View File

@ -1,3 +1,7 @@
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "../toxcore/net_crypto.h" #include "../toxcore/net_crypto.h"
#include <sys/types.h> #include <sys/types.h>
#include <stdint.h> #include <stdint.h>

View File

@ -18,6 +18,10 @@
* times. This is used both to ensure that we don't loop forever on a broken build, * 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. */ * 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/friend_requests.h"
#include "../toxcore/Messenger.h" #include "../toxcore/Messenger.h"
#include <assert.h> #include <assert.h>

View File

@ -10,6 +10,10 @@
* checking that status changes are received, messages can be sent, etc. * 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. */ * 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/Messenger.h"
#include "../toxcore/Lossless_UDP.h" #include "../toxcore/Lossless_UDP.h"
#include <sys/types.h> #include <sys/types.h>

View File

@ -26,6 +26,9 @@
* along with Tox. If not, see <http://www.gnu.org/licenses/>. * along with Tox. If not, see <http://www.gnu.org/licenses/>.
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "../toxcore/DHT.h" #include "../toxcore/DHT.h"
#include "../toxcore/friend_requests.h" #include "../toxcore/friend_requests.h"

View File

@ -32,6 +32,10 @@
#include <arpa/inet.h> /* htons() */ #include <arpa/inet.h> /* htons() */
#include <string.h> /* strcpy() */ #include <string.h> /* strcpy() */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "../../toxcore/DHT.h" #include "../../toxcore/DHT.h"
#include "../../toxcore/friend_requests.h" #include "../../toxcore/friend_requests.h"

View File

@ -22,6 +22,10 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include "group_chats.h" #include "group_chats.h"