mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-12-08 23:03:46 +00:00
20 lines
323 B
Diff
20 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;
|
||
|
}
|