From 4e79769fe2af2d3e6ed2c14ef0058ed3a077fddc Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Thu, 5 Dec 2019 18:17:31 -0500 Subject: [PATCH] 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 --- liblttng-ust-ctl/ustctl.c | 1 + liblttng-ust/lttng-ust-abi.c | 1 + libringbuffer/shm.h | 1 + 3 files changed, 3 insertions(+) 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" -- 2.34.1