summaryrefslogtreecommitdiff
path: root/user/libnfs/unconditional-sys-time.h.patch
diff options
context:
space:
mode:
authorA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:14:53 -0500
committerA. Wilcox <AWilcox@Wilcox-Tech.com>2018-07-27 04:14:53 -0500
commitcba319cb425698285db1f6f3729dff2223a00626 (patch)
treef5d7c89bd0de9b4bf0bfd3b92c180ba0a828a3ea /user/libnfs/unconditional-sys-time.h.patch
parent97a9fa2a372686cc873d1f966a769d3d80a7f054 (diff)
downloadpackages-cba319cb425698285db1f6f3729dff2223a00626.tar.gz
packages-cba319cb425698285db1f6f3729dff2223a00626.tar.bz2
packages-cba319cb425698285db1f6f3729dff2223a00626.tar.xz
packages-cba319cb425698285db1f6f3729dff2223a00626.zip
user/libnfs: pull in, bump to 3.0.0, take, modernise
Diffstat (limited to 'user/libnfs/unconditional-sys-time.h.patch')
-rw-r--r--user/libnfs/unconditional-sys-time.h.patch19
1 files changed, 19 insertions, 0 deletions
diff --git a/user/libnfs/unconditional-sys-time.h.patch b/user/libnfs/unconditional-sys-time.h.patch
new file mode 100644
index 000000000..a8f37465f
--- /dev/null
+++ b/user/libnfs/unconditional-sys-time.h.patch
@@ -0,0 +1,19 @@
+POSIX says `struct timeval` is only defined if <sys/time.h> is included.
+
+So include it.
+
+--- libnfs-libnfs-3.0.0/include/nfsc/libnfs.h.old 2018-06-23 22:53:52.000000000 +0000
++++ libnfs-libnfs-3.0.0/include/nfsc/libnfs.h 2018-07-27 09:11:13.200000000 +0000
+@@ -24,12 +24,8 @@
+ #define _LIBNFS_H_
+
+ #include <stdint.h>
+-#if defined(__ANDROID__) || defined(AROS) \
+- || ( defined(__APPLE__) && defined(__MACH__) )
+ #include <sys/time.h>
+-#else
+ #include <time.h>
+-#endif
+
+ #ifdef __cplusplus
+ extern "C" {