File 0982-inets-Eliminate-warnings-in-C-code-in-tests.patch of Package erlang

From 9327efe6867fbda34391c1b6696c25c99fbabb2b 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 4/4] inets: 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/inets/test/httpd_SUITE_data/cgi_echo.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/inets/test/httpd_SUITE_data/cgi_echo.c b/lib/inets/test/httpd_SUITE_data/cgi_echo.c
index 580f860e96..e90b125a00 100644
--- a/lib/inets/test/httpd_SUITE_data/cgi_echo.c
+++ b/lib/inets/test/httpd_SUITE_data/cgi_echo.c
@@ -4,6 +4,8 @@
 #if defined __WIN32__
 #include <windows.h> 
 #include <fcntl.h>
+#else
+#include <unistd.h>
 #endif
 
 static int read_exact(char *buffer, int len);
-- 
2.26.2

openSUSE Build Service is sponsored by