0003-add-missing-sys-time.h-header.patch 951 B

1234567891011121314151617181920212223242526272829303132333435
  1. From 283cab667a9ac3ae3a675b5e5d1a42191188699f Mon Sep 17 00:00:00 2001
  2. From: Romain Naour <romain.naour@openwide.fr>
  3. Date: Sat, 8 Aug 2015 18:24:48 +0200
  4. Subject: [PATCH] add missing sys/time.h header
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. struct timeval is defined in sys/time.h with a musl toolchain.
  9. Fixes:
  10. In file included from devices/devfreq.cpp:35:0:
  11. devices/devfreq.h:35:18: error: field ‘stamp_before’ has incomplete type ‘timeval’
  12. struct timeval stamp_before, stamp_after;
  13. Signed-off-by: Romain Naour <romain.naour@openwide.fr>
  14. ---
  15. src/devices/devfreq.h | 1 +
  16. 1 file changed, 1 insertion(+)
  17. diff --git a/src/devices/devfreq.h b/src/devices/devfreq.h
  18. index 16a60fb..4a8983b 100644
  19. --- a/src/devices/devfreq.h
  20. +++ b/src/devices/devfreq.h
  21. @@ -27,6 +27,7 @@
  22. #include "device.h"
  23. #include "../parameters/parameters.h"
  24. +#include <sys/time.h>
  25. struct frequency;
  26. --
  27. 2.4.3