0002-add-missing-time-include.patch 483 B

1234567891011121314151617181920
  1. Add missing <time.h> include
  2. netplug.h uses time_t, so it must include <time.h>. This fixes a build
  3. issue with the musl C library.
  4. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  5. Index: b/netplug.h
  6. ===================================================================
  7. --- a/netplug.h
  8. +++ b/netplug.h
  9. @@ -20,7 +20,7 @@
  10. #ifndef __netplug_h
  11. #define __netplug_h
  12. -
  13. +#include <time.h>
  14. #include <asm/types.h>
  15. #include <sys/socket.h>
  16. #include <linux/netlink.h>