net: Make it possible to include net/buf.h even if CONFIG_NET_BUF=n
Since CONFIG_NET_BUF_USER_DATA_SIZE was not defined when CONFIG_NET_BUF=n, compilation would fail on struct net_buf.user_data. Signed-off-by: Tobias Svehagen <tobias.svehagen@gmail.com>
This commit is contained in:
parent
8b07ec1143
commit
a5147dc15c
1 changed files with 4 additions and 0 deletions
|
@ -15,6 +15,10 @@
|
||||||
#include <sys/util.h>
|
#include <sys/util.h>
|
||||||
#include <zephyr.h>
|
#include <zephyr.h>
|
||||||
|
|
||||||
|
#ifndef CONFIG_NET_BUF_USER_DATA_SIZE
|
||||||
|
#define CONFIG_NET_BUF_USER_DATA_SIZE 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue