summaryrefslogtreecommitdiff
path: root/media-libs/xine-lib/files/xine-lib-1.2.13-libnfsv2.patch
blob: ab7cf42e7862f67b89c22b483dbc516746f372ac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Backport https://sourceforge.net/p/xine/xine-lib-1.2/ci/ea7071
add support for >=libnfs-6.0 (LIBNFS_API_V2)
--- a/src/input/input_nfs.c
+++ b/src/input/input_nfs.c
@@ -134,7 +134,11 @@
   int rc;
 
   while (got < len) {
-    rc = nfs_read(this->nfs, this->nfsfh, len - got, buf + got);
+#ifdef LIBNFS_API_V2
+    rc = nfs_read (this->nfs, this->nfsfh, buf + got, len - got);
+#else
+    rc = nfs_read (this->nfs, this->nfsfh, len - got, buf + got);
+#endif
     if (rc <= 0) {
       if (errno == EAGAIN || errno == EINTR)
         continue;