From 2786d9d5363fbe75af13e54b0a9512c96e7a923b Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 3 Dec 2019 15:42:33 -0500 Subject: [PATCH] Cleanup: apply `include-what-you-use` guideline for `fpos_t` I saw that some files use the `fpos_t` type but there are not including a header for it. The `fpos_t` type is defined by the following header: So, to follow the best practice of including what is used in a file, I added `#include ` in files using `fpos_t`. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I808ad0b23f04389fd56f89aa001095b771a327d6 --- snprintf/local.h | 3 ++- snprintf/various.h | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/snprintf/local.h b/snprintf/local.h index d9251bf6..57b23371 100644 --- a/snprintf/local.h +++ b/snprintf/local.h @@ -37,7 +37,8 @@ * in particular, macros and private variables. */ -#include +#include +#include #include "various.h" #include "wcio.h" #include "fileext.h" diff --git a/snprintf/various.h b/snprintf/various.h index 638428fd..64f1db1f 100644 --- a/snprintf/various.h +++ b/snprintf/various.h @@ -35,6 +35,7 @@ #include #include +#include struct __lttng_ust_sbuf { unsigned char *_base; -- 2.34.1