1From 9df082012cba1dc32d83e5e8b0bdc0892f250058 Mon Sep 17 00:00:00 2001 2From: =?UTF-8?q?J=C3=B6rg=20Krause?= <joerg.krause@embedded.rocks> 3Date: Mon, 5 Nov 2018 00:43:07 +0100 4Subject: [PATCH] Fix include sys/time.h 5MIME-Version: 1.0 6Content-Type: text/plain; charset=UTF-8 7Content-Transfer-Encoding: 8bit 8 9POSIX says `struct timeval` is defined if <sys/time.h> is included. 10 11Instead of the mess that is currently done based on the system on which 12the stuff is being compiled, include it unconditionally. 13 14Upstream: https://github.com/sahlberg/libnfs/issues/272 15 16Signed-off-by: Jörg Krause <joerg.krause@embedded.rocks> 17[Fabrice: update for 5.0.2] 18Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 19--- 20 include/nfsc/libnfs.h | 5 ----- 21 1 file changed, 5 deletions(-) 22 23diff --git a/include/nfsc/libnfs.h b/include/nfsc/libnfs.h 24index 09dcf1c..b6db58c 100755 25--- a/include/nfsc/libnfs.h 26+++ b/include/nfsc/libnfs.h 27@@ -24,12 +24,7 @@ 28 #define _LIBNFS_H_ 29 30 #include <stdint.h> 31-#if defined(__ANDROID__) || defined(AROS) || defined(__PPU__) \ 32- || ( defined(__APPLE__) && defined(__MACH__) ) || defined(__FreeBSD__) || defined(__OpenBSD__) 33 #include <sys/time.h> 34-#else 35-#include <time.h> 36-#endif 37 38 #ifdef __cplusplus 39 extern "C" { 40-- 412.19.1 42 43