From: Francis Deslauriers Date: Thu, 5 Dec 2019 23:17:31 +0000 (-0500) Subject: Cleanup: apply `include-what-you-use` guideline for `close()` X-Git-Tag: v2.13.0-rc1~546 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4e79769fe2af2d3e6ed2c14ef0058ed3a077fddc;p=lttng-ust.git Cleanup: apply `include-what-you-use` guideline for `close()` I saw that some files use the `close()` function but there are not including a header for it. The `close()` function 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 `close()`. Signed-off-by: Francis Deslauriers Signed-off-by: Mathieu Desnoyers Change-Id: I07e104e957857c869576af7c2704e98584ecc763 --- diff --git a/liblttng-ust-ctl/ustctl.c b/liblttng-ust-ctl/ustctl.c index 39c8baa4..914ce94e 100644 --- a/liblttng-ust-ctl/ustctl.c +++ b/liblttng-ust-ctl/ustctl.c @@ -21,6 +21,7 @@ #include #include #include +#include #include #include diff --git a/liblttng-ust/lttng-ust-abi.c b/liblttng-ust/lttng-ust-abi.c index 0459d7a3..c060e2d9 100644 --- a/liblttng-ust/lttng-ust-abi.c +++ b/liblttng-ust/lttng-ust-abi.c @@ -39,6 +39,7 @@ #define _LGPL_SOURCE #include +#include #include #include diff --git a/libringbuffer/shm.h b/libringbuffer/shm.h index b5d1343a..d7393cd2 100644 --- a/libringbuffer/shm.h +++ b/libringbuffer/shm.h @@ -23,6 +23,7 @@ #include #include +#include #include #include #include "shm_types.h"