summaryrefslogtreecommitdiffstats
path: root/package/nut/0002-client-ups-add-missing-include.patch
diff options
context:
space:
mode:
authorYann E. MORIN <yann.morin.1998@free.fr>2017-01-01 10:00:56 +0100
committerPeter Korsgaard <peter@korsgaard.com>2017-01-04 17:10:15 +0100
commit5993f7acd1fb2f284d99b637c1bf3c6f64b32cdd (patch)
tree5f480ebaeedca6f0c4b823656581fc121944cda8 /package/nut/0002-client-ups-add-missing-include.patch
parentce12407148b9efcc607742bf0e8d3999723420d8 (diff)
downloadbuildroot-5993f7acd1fb2f284d99b637c1bf3c6f64b32cdd.tar.gz
buildroot-5993f7acd1fb2f284d99b637c1bf3c6f64b32cdd.zip
package/nut: bump version
Update our patches: - drop patch 1, replaced by an upstream equivalent; adapt config options and env accordingly, - drop patch 2, applied upstream, - rename patch 3 gdlib-config and net-snmp-config are only used when said support is enabled (resp. CGI and SNMP), so no need to pass them unconditionally. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/nut/0002-client-ups-add-missing-include.patch')
-rw-r--r--package/nut/0002-client-ups-add-missing-include.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/package/nut/0002-client-ups-add-missing-include.patch b/package/nut/0002-client-ups-add-missing-include.patch
new file mode 100644
index 0000000000..63fdcdcbb4
--- /dev/null
+++ b/package/nut/0002-client-ups-add-missing-include.patch
@@ -0,0 +1,29 @@
+From da0969b26ad4bb839bcb88362c8f41aaf0eb8363 Mon Sep 17 00:00:00 2001
+From: "Yann E. MORIN" <yann.morin.1998@free.fr>
+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" <yann.morin.1998@free.fr>
+---
+Backported from upstream commit da0969b26ad4bb839bcb88362c8f41aaf0eb8363
+---
+ 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
+
OpenPOWER on IntegriCloud