mirror of
https://github.com/obgm/libcoap.git
synced 2026-10-27 21:22:33 +03:00
examples: use the coap2 folder for including coap.h
Due the changed installation folder we need to adjust the source path to coap.h for the files within the files of the examples.
This commit is contained in:
1 parent
13fa0dfcdf
commit
6dde2bc9a8
6 files changed
+8
-8
No files matched your search
@@ -10,7 +10,7 @@ if BUILD_EXAMPLES
|
||||
|
||||
# picking up the default warning CFLAGS into AM_CFLAGS
|
||||
AM_CFLAGS = -I$(top_builddir)/include -I$(top_srcdir)/include \
|
||||
-I$(top_srcdir)/include/coap \
|
||||
-I$(top_srcdir)/include/coap$(LIBCOAP_API_VERSION) \
|
||||
$(WARNING_CFLAGS) $(DTLS_CFLAGS) -std=c99
|
||||
|
||||
# etsi_iot_01 and tiny are missing
|
||||
|
||||
+1
-1
@@ -29,7 +29,7 @@
|
||||
#include <netdb.h>
|
||||
#endif
|
||||
|
||||
#include <coap/coap.h>
|
||||
#include <coap2/coap.h>
|
||||
|
||||
#define MAX_USER 128 /* Maximum length of a user name (i.e., PSK
|
||||
* identity) in bytes. */
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@
|
||||
#include <dirent.h>
|
||||
#endif
|
||||
|
||||
#include <coap/coap.h>
|
||||
#include <coap2/coap.h>
|
||||
|
||||
#define COAP_RESOURCE_CHECK_TIME 2
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@
|
||||
/* Need to refresh time once per sec */
|
||||
#define COAP_RESOURCE_CHECK_TIME 1
|
||||
|
||||
#include <coap/coap.h>
|
||||
#include <coap2/coap.h>
|
||||
|
||||
#ifndef min
|
||||
#define min(a,b) ((a) < (b) ? (a) : (b))
|
||||
|
||||
@@ -30,9 +30,9 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <coap/libcoap.h>
|
||||
#include <coap/debug.h>
|
||||
#include <coap/mem.h>
|
||||
#include <coap2/libcoap.h>
|
||||
#include <coap2/debug.h>
|
||||
#include <coap2/mem.h>
|
||||
#include "coap_list.h"
|
||||
|
||||
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
#ifndef _COAP_LIST_H_
|
||||
#define _COAP_LIST_H_
|
||||
|
||||
#include <coap/utlist.h>
|
||||
#include <coap2/utlist.h>
|
||||
|
||||
typedef struct coap_list_t {
|
||||
struct coap_list_t *next;
|
||||
|
||||
Reference in new issue
Block a user