package/nut: fix build with musl
PATCH 1/1 package/nut: fix build with musl
Add missing header, backport from an upstream commit.
Fixes;
http://autobuild.buildroot.org/results/441/4419b24fff68dbddf488003100b6abd7b3cd5576/Signed-off-by "Yann E. MORIN" <[email protected]>
--- .../nut/0003-client-ups-add-missing-include.patch | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 package/nut/0003-client-ups-add-missing-include.patch
package/nut/0003-client-ups-add-missing-include.patch new file +29 -0
@@ -0,0 +1,29 @@ +From da0969b26ad4bb839bcb88362c8f41aaf0eb8363 Mon Sep 17 00:00:00 2001 +From: "Yann E. MORIN" <[email protected]> +Date: Tue, 11 Oct 2016 12:05:36 +0200 +Subject: [PATCH] client/ups: add missing include + +struct timeval is declared in sys/time.h, so we need to #include it. + +Signed-off-by: "Yann E. MORIN" <[email protected]> +--- +Backported from upstream. +--- + clients/upsclient.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/clients/upsclient.c b/clients/upsclient.c +index 43c0e79..dfadd0d 100644 +--- a/clients/upsclient.c ++++ b/clients/upsclient.c +@@ -37,6 +37,7 @@ + #include <netinet/in.h> + #include <arpa/inet.h> + #include <fcntl.h> ++#include <sys/time.h> + + #include "upsclient.h" + #include "common.h" +-- +2.7.4 +
Signature · 1 line
2.7.4
PATCH 1/1 package/nut: fix build with musl
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Yann" == Yann E MORIN <[email protected]> writes:
Add missing header, backport from an upstream commit.
Fixes; http://autobuild.buildroot.org/results/441/4419b24fff68dbddf488003100b6abd7b3cd5576/Signed-off-by "Yann E. MORIN" <[email protected]>
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard