File 0980-kernel-Eliminate-warnings-in-C-code-in-tests.patch of Package erlang

From b58473fcfce6cdf3c5012e7636084bde0fd7d4e0 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Bj=C3=B6rn=20Gustavsson?= <bjorn@erlang.org>
Date: Thu, 24 Sep 2020 09:51:38 +0200
Subject: [PATCH 2/4] 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.
---
 lib/kernel/test/os_SUITE_data/my_fds.c | 4 ++++
 1 file changed, 4 insertions(+)

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)
 {
-- 
2.26.2

openSUSE Build Service is sponsored by