From: Bartosz Golaszewski Date: Fri, 9 Dec 2022 10:07:03 +0000 (+0100) Subject: gpiosim: add missing fcntl.h include X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=43fed2c87c6a69a652c8a23f25ada9c4ce018d18;p=qemu-gpiodev%2Flibgpiod.git gpiosim: add missing fcntl.h include The fcntl.h header is needed for openat() and mkdirat() that the gpiosim code uses. It seems to be pulled in indirectly on most toolchains but for the sake of correctness, include it explicitly. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/gpiosim/gpiosim.c b/tests/gpiosim/gpiosim.c index 43d900f..f5e910e 100644 --- a/tests/gpiosim/gpiosim.c +++ b/tests/gpiosim/gpiosim.c @@ -2,6 +2,7 @@ // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski #include +#include #include #include #include