PKGBUILDs/extra/dmapi/no-getdents-aarch64.diff
2020-05-15 22:45:25 +00:00

19 lines
323 B
Diff

--- libdm/getdents.c
+++ libdm/getdents.c
@@ -211,6 +211,8 @@
# endif
}
#endif
+
+#ifdef __NR_getdents
{
size_t red_nbytes;
struct kernel_dirent *skdp, *kdp;
@@ -267,6 +269,7 @@
kdp = (struct kernel_dirent *) (((char *) kdp) + kdp->d_reclen);
}
}
+#endif
return (char *) dp - buf;
}