0002-libnfs.c-include-time.h-in-libnfs.c.patch 939 B

1234567891011121314151617181920212223242526272829303132333435
  1. From b56bd3d99f67a3273fec3c0c5d9560413465a1db Mon Sep 17 00:00:00 2001
  2. From: Anna Lyons <Anna.Lyons@data61.csiro.au>
  3. Date: Thu, 12 Jul 2018 17:45:23 +1000
  4. Subject: [PATCH] libnfs.c: include <time.h> in libnfs.c
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. time() is used in this file, which is from time.h. Fixes a warning.
  9. Note, that building with musl breaks otherwise, as it is more strict regarding
  10. missing header inclusions.
  11. Backported from: 794a29f01f8e5961adc5c79d5ba5ac1062877e6c
  12. Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks>
  13. ---
  14. lib/libnfs.c | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/lib/libnfs.c b/lib/libnfs.c
  17. index d89d84d..43c17b9 100755
  18. --- a/lib/libnfs.c
  19. +++ b/lib/libnfs.c
  20. @@ -70,6 +70,7 @@
  21. #include <stdarg.h>
  22. #include <stdlib.h>
  23. #include <string.h>
  24. +#include <time.h>
  25. #include "slist.h"
  26. #include "libnfs.h"
  27. #include "libnfs-raw.h"
  28. --
  29. 2.19.1