diff --git a/include/debug.h b/include/debug.h index 50371e4..3a9d86e 100644 --- a/include/debug.h +++ b/include/debug.h @@ -2,6 +2,7 @@ #define _LIBDECT_DEBUG_H #include +#include extern void __dect_debug(enum dect_debug_subsys subsys, const char *fmt, ...) __fmtstring(2, 3); extern void __dect_hexdump(enum dect_debug_subsys subsys, const char *prefix, diff --git a/include/dect/debug.h b/include/dect/debug.h index 5433fca..3a79579 100644 --- a/include/dect/debug.h +++ b/include/dect/debug.h @@ -5,6 +5,9 @@ extern "C" { #endif +#include +#include + /** * @addtogroup debug * @{ diff --git a/include/dect/identities.h b/include/dect/identities.h index 91eebe9..346c244 100644 --- a/include/dect/identities.h +++ b/include/dect/identities.h @@ -11,6 +11,9 @@ extern "C" { #endif +#include +#include + /** * @addtogroup identity * @{ diff --git a/include/dect/ie.h b/include/dect/ie.h index ce18fd2..1920d87 100644 --- a/include/dect/ie.h +++ b/include/dect/ie.h @@ -16,8 +16,11 @@ extern "C" { * @{ */ +#include #include + #include +#include struct dect_handle; @@ -34,6 +37,8 @@ struct dect_ie_collection { struct dect_ie_common *ie[]; }; +extern void *dect_ie_collection_alloc(const struct dect_handle *dh, unsigned int size); + extern struct dect_ie_collection *__dect_ie_collection_hold(struct dect_ie_collection *iec); #define dect_ie_collection_hold(iec) ((void *)__dect_ie_collection_hold(&(iec)->common)) diff --git a/include/s_fmt.h b/include/s_fmt.h index 8332758..dd25ca3 100644 --- a/include/s_fmt.h +++ b/include/s_fmt.h @@ -7,6 +7,8 @@ #ifndef _LIBDECT_S_FMT_H #define _LIBDECT_S_FMT_H +#include + /* * S-Format message header */ @@ -407,8 +409,6 @@ struct dect_msg_common { struct dect_ie_common *ie[0]; }; -extern void *dect_ie_collection_alloc(const struct dect_handle *dh, unsigned int size); - struct dect_msg_buf; extern enum dect_sfmt_error dect_parse_sfmt_msg(const struct dect_handle *dh, const struct dect_sfmt_msg_desc *desc, diff --git a/include/utils.h b/include/utils.h index 6248d21..95b981c 100644 --- a/include/utils.h +++ b/include/utils.h @@ -2,6 +2,8 @@ #define _LIBDECT_UTILS_H #include +#include +#include #ifndef AF_DECT #define AF_DECT 38 diff --git a/src/ie.c b/src/ie.c index d6e1d75..0580050 100644 --- a/src/ie.c +++ b/src/ie.c @@ -19,11 +19,8 @@ #include #include +#include #include -#include -#include -#include -#include #if 0 #define refcnt_debug(fmt, ...) dect_debug(fmt, ## __VA_ARGS__)