buildroot/package/azure-iot-sdk-c/0001-Fix-redirection-of-errno-header.patch
Sergio Prado 208d3eb045 package/azure-iot-sdk-c: bump version to LTS_02_2020_Ref01
Also:

- Add missing hash file.
- Add new libraries to the install target.
- Apply patch to fix build with musl (MR sent upstream in [1]).
- Since there is no maintainer for this package, I can help maintain it,
so add the package to the DEVELOPERS file.

[1] https://github.com/Azure/azure-c-shared-utility/pull/456

Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-07-05 15:51:53 +02:00

33 lines
996 B
Diff

From 9ff62052a9490c96366d97096a039dca30702b2d Mon Sep 17 00:00:00 2001
From: Sergio Prado <sergio.prado@e-labworks.com>
Date: Fri, 3 Jul 2020 21:09:20 -0300
Subject: [PATCH] Fix redirection of errno header
The POSIX correct header to include is <errno.h>.
The glibc silently redirects incorrect includes, but musl libc prints
a warning:
#warning redirecting incorrect #include <sys/errno.h> to <errno.h>
Signed-off-by: Sergio Prado <sergio.prado@e-labworks.com>
---
c-utility/pal/linux/socket_async_os.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/c-utility/pal/linux/socket_async_os.h b/c-utility/pal/linux/socket_async_os.h
index bd59e487c099..1797089851e3 100644
--- a/c-utility/pal/linux/socket_async_os.h
+++ b/c-utility/pal/linux/socket_async_os.h
@@ -10,7 +10,7 @@
#include <sys/select.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
-#include <sys/errno.h>
+#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include <netdb.h>
--
2.17.1