[PATCH] genl: Include <stddef.h> for size_t typedef.
by Ossama Othman
The l_genl_msg_append_attrv() prototype in the ELL genl.h header uses
the size_t typedef. Explicitly include <stddef.h> to pull in the
size_t typedef declaration in case the user directly includes
<ell/genl.h> without, or prior to, other headers that would have done
the same. This addresses an "unknown type name" compile-time error in
such a case.
---
ell/genl.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/ell/genl.h b/ell/genl.h
index bddf1d4..ff5687c 100644
--- a/ell/genl.h
+++ b/ell/genl.h
@@ -24,6 +24,7 @@
#define __ELL_GENL_H
#include <stdbool.h>
+#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
--
2.17.1
2 years, 7 months