summaryrefslogtreecommitdiffstats
path: root/build/has/getdents64-syscall.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/has/getdents64-syscall.c')
-rw-r--r--build/has/getdents64-syscall.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/build/has/getdents64-syscall.c b/build/has/getdents64-syscall.c
index 4838c14..7642d93 100644
--- a/build/has/getdents64-syscall.c
+++ b/build/has/getdents64-syscall.c
@@ -6,7 +6,6 @@
#include <unistd.h>
int main(void) {
- struct dirent64 de;
- syscall(SYS_getdents64, 3, &de, 1024);
- return 0;
+ char buf[1024];
+ return syscall(SYS_getdents64, 3, (void *)buf, sizeof(buf));
}