From 729cda62bf2a79e9d27b05693f99957072a94fa7 Mon Sep 17 00:00:00 2001
From: Kaspar Schleiser <kaspar@schleiser.de>
Date: Wed, 22 Nov 2017 12:28:30 +0100
Subject: [PATCH] examples/nanocoap_server: adapt to in-tree nanocoap

---
 examples/nanocoap_server/Makefile       | 4 +---
 examples/nanocoap_server/coap_handler.c | 2 +-
 examples/nanocoap_server/main.c         | 4 ++--
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/examples/nanocoap_server/Makefile b/examples/nanocoap_server/Makefile
index 07cef0e4c9..ec2b6e1b0e 100644
--- a/examples/nanocoap_server/Makefile
+++ b/examples/nanocoap_server/Makefile
@@ -22,9 +22,7 @@ USEMODULE += gnrc_sock_udp
 # Additional networking modules that can be dropped if not needed
 USEMODULE += gnrc_icmpv6_echo
 
-USEPKG += nanocoap
-# optionally enable nanocoap's debug output
-#CFLAGS += -DNANOCOAP_DEBUG
+USEMODULE += nanocoap_sock
 
 # include this for nicely formatting the returned internal value
 USEMODULE += fmt
diff --git a/examples/nanocoap_server/coap_handler.c b/examples/nanocoap_server/coap_handler.c
index 4eadff6ea9..5c1716a3bc 100644
--- a/examples/nanocoap_server/coap_handler.c
+++ b/examples/nanocoap_server/coap_handler.c
@@ -11,7 +11,7 @@
 #include <string.h>
 
 #include "fmt.h"
-#include "nanocoap.h"
+#include "net/nanocoap.h"
 
 /* internal value that can be read/written via CoAP */
 static uint8_t internal_value = 0;
diff --git a/examples/nanocoap_server/main.c b/examples/nanocoap_server/main.c
index c600d20fd6..91ce26ef9a 100644
--- a/examples/nanocoap_server/main.c
+++ b/examples/nanocoap_server/main.c
@@ -19,8 +19,8 @@
 
 #include <stdio.h>
 
-#include "nanocoap.h"
-#include "nanocoap_sock.h"
+#include "net/nanocoap.h"
+#include "net/nanocoap_sock.h"
 
 #include "xtimer.h"
 
-- 
GitLab