diff options
author | Björn Gustavsson <bjorn@erlang.org> | 2020-09-24 09:51:38 +0200 |
---|---|---|
committer | Björn Gustavsson <bjorn@erlang.org> | 2021-02-18 12:04:00 +0100 |
commit | 3284a80ccb9653cee568dde6662af44e98281c05 (patch) | |
tree | 390ddaa035ebc73acbef1e33de261e6bc4568a00 | |
parent | f1ba748e325015cf2f5743ea692ed20ea69b00b3 (diff) | |
download | erlang-3284a80ccb9653cee568dde6662af44e98281c05.tar.gz |
kernel: Eliminate warnings in C code in tests
Apple Clang 12 in Xcode 12 reports an error for the use of a
function without a declaration.
-rw-r--r-- | lib/kernel/test/os_SUITE_data/my_fds.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/kernel/test/os_SUITE_data/my_fds.c b/lib/kernel/test/os_SUITE_data/my_fds.c index 704a4d1e1d..8b1ce13822 100644 --- a/lib/kernel/test/os_SUITE_data/my_fds.c +++ b/lib/kernel/test/os_SUITE_data/my_fds.c @@ -1,5 +1,9 @@ #include <stdio.h> +#ifdef HAVE_UNISTD_H +# include <unistd.h> +#endif + int main(int argc, char** argv) { |