From: Francis Deslauriers Date: Tue, 3 Dec 2019 20:42:33 +0000 (-0500) Subject: Cleanup: apply `include-what-you-use` guideline for `fpos_t` X-Git-Tag: v2.13.0-rc1~549 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2786d9d5363fbe75af13e54b0a9512c96e7a923b;p=lttng-ust.git 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 --- 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;