Skip to content

Commit d89fdb2

Browse files
committed
Fix include paths
They are relative to the Makefile instead of the source file itself, which is unintuitive and is messing with my IDE.
1 parent da76da6 commit d89fdb2

File tree

3 files changed

+17
-13
lines changed

3 files changed

+17
-13
lines changed

build/Makefile.am

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ include ../toxencryptsave/Makefile.inc
1010
include ../toxav/Makefile.inc
1111
include ../other/Makefile.inc
1212
include ../testing/Makefile.inc
13-
include ../other/bootstrap_daemon/Makefile.inc
13+
include ../other/bootstrap_daemon/src/Makefile.inc
1414
include ../auto_tests/Makefile.inc

other/bootstrap_daemon/Makefile.inc renamed to other/bootstrap_daemon/src/Makefile.inc

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,17 @@ if BUILD_DHT_BOOTSTRAP_DAEMON
33
bin_PROGRAMS += tox-bootstrapd
44

55
tox_bootstrapd_SOURCES = \
6-
../other/bootstrap_daemon/src/tox-bootstrapd.c \
7-
../other/bootstrap_daemon/src/log.c \
8-
../other/bootstrap_daemon/src/log.h \
9-
../other/bootstrap_daemon/src/config.h \
6+
../other/bootstrap_daemon/src/command_line_arguments.c \
7+
../other/bootstrap_daemon/src/command_line_arguments.h \
108
../other/bootstrap_daemon/src/config.c \
119
../other/bootstrap_daemon/src/config_defaults.h \
12-
../other/bootstrap_node_packets.h \
10+
../other/bootstrap_daemon/src/config.h \
11+
../other/bootstrap_daemon/src/log.c \
12+
../other/bootstrap_daemon/src/log.h \
13+
../other/bootstrap_daemon/src/tox-bootstrapd.c \
1314
../other/bootstrap_node_packets.c \
14-
../other/bootstrap_daemon/src/command_line_arguments.h \
15-
../other/bootstrap_daemon/src/command_line_arguments.c
15+
../other/bootstrap_node_packets.h
16+
1617

1718
tox_bootstrapd_CFLAGS = \
1819
-I$(top_srcdir)/other/bootstrap_daemon \
@@ -32,5 +33,6 @@ endif
3233

3334
EXTRA_DIST += \
3435
$(top_srcdir)/other/bootstrap_daemon/tox-bootstrapd.conf \
36+
$(top_srcdir)/other/bootstrap_daemon/tox-bootstrapd.service \
3537
$(top_srcdir)/other/bootstrap_daemon/tox-bootstrapd.sh
3638

other/bootstrap_daemon/src/tox-bootstrapd.c

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,19 +30,21 @@
3030
#include <string.h>
3131

3232
// toxcore
33-
#include "../../toxcore/LAN_discovery.h"
34-
#include "../../toxcore/onion_announce.h"
35-
#include "../../toxcore/TCP_server.h"
36-
#include "../../toxcore/util.h"
33+
#include "../../../toxcore/LAN_discovery.h"
34+
#include "../../../toxcore/onion_announce.h"
35+
#include "../../../toxcore/TCP_server.h"
36+
#include "../../../toxcore/util.h"
37+
3738

3839
// misc
39-
#include "../bootstrap_node_packets.h"
40+
#include "../../bootstrap_node_packets.h"
4041

4142
#include "command_line_arguments.h"
4243
#include "config.h"
4344
#include "global.h"
4445
#include "log.h"
4546

47+
4648
#define SLEEP_MILLISECONDS(MS) usleep(1000*MS)
4749

4850
// Uses the already existing key or creates one if it didn't exist

0 commit comments

Comments
 (0)