diff --git a/examples/nanocoap_server/main.c b/examples/nanocoap_server/main.c index 91ce26ef9a..dca6322c0c 100644 --- a/examples/nanocoap_server/main.c +++ b/examples/nanocoap_server/main.c @@ -19,9 +19,7 @@ #include -#include "net/nanocoap.h" #include "net/nanocoap_sock.h" - #include "xtimer.h" #define COAP_INBUF_SIZE (256U) diff --git a/sys/include/net/nanocoap_sock.h b/sys/include/net/nanocoap_sock.h index fd983212ca..97a2e290ce 100644 --- a/sys/include/net/nanocoap_sock.h +++ b/sys/include/net/nanocoap_sock.h @@ -23,6 +23,7 @@ #include #include +#include "net/nanocoap.h" #include "net/sock/udp.h" #ifdef __cplusplus diff --git a/sys/net/application_layer/nanocoap/sock.c b/sys/net/application_layer/nanocoap/sock.c index ad8118b546..ef2e0d6939 100644 --- a/sys/net/application_layer/nanocoap/sock.c +++ b/sys/net/application_layer/nanocoap/sock.c @@ -22,7 +22,7 @@ #include #include -#include "net/nanocoap.h" +#include "net/nanocoap_sock.h" #include "net/sock/udp.h" #define ENABLE_DEBUG (0)