File no-getdents-aarch64.diff of Package dmapi

--- 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;
 }
openSUSE Build Service is sponsored by