0002-client-ups-add-missing-include.patch 780 B

1234567891011121314151617181920212223242526272829
  1. From da0969b26ad4bb839bcb88362c8f41aaf0eb8363 Mon Sep 17 00:00:00 2001
  2. From: "Yann E. MORIN" <yann.morin.1998@free.fr>
  3. Date: Tue, 11 Oct 2016 12:05:36 +0200
  4. Subject: [PATCH] client/ups: add missing include
  5. struct timeval is declared in sys/time.h, so we need to #include it.
  6. Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
  7. ---
  8. Backported from upstream commit da0969b26ad4bb839bcb88362c8f41aaf0eb8363
  9. ---
  10. clients/upsclient.c | 1 +
  11. 1 file changed, 1 insertion(+)
  12. diff --git a/clients/upsclient.c b/clients/upsclient.c
  13. index 43c0e79..dfadd0d 100644
  14. --- a/clients/upsclient.c
  15. +++ b/clients/upsclient.c
  16. @@ -37,6 +37,7 @@
  17. #include <netinet/in.h>
  18. #include <arpa/inet.h>
  19. #include <fcntl.h>
  20. +#include <sys/time.h>
  21. #include "upsclient.h"
  22. #include "common.h"
  23. --
  24. 2.7.4