diff options
-rw-r--r-- | build/has/getdents.c | 5 | ||||
-rw-r--r-- | build/has/getdents64-syscall.c | 5 | ||||
-rw-r--r-- | build/has/getdents64.c | 5 |
3 files changed, 6 insertions, 9 deletions
diff --git a/build/has/getdents.c b/build/has/getdents.c index d0d4228..579898f 100644 --- a/build/has/getdents.c +++ b/build/has/getdents.c @@ -4,7 +4,6 @@ #include <dirent.h> int main(void) { - struct dirent de; - getdents(3, &de, 1024); - return 0; + char buf[1024]; + return getdents(3, (void *)buf, sizeof(buf)); } 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)); } diff --git a/build/has/getdents64.c b/build/has/getdents64.c index 1abf36d..d8e8062 100644 --- a/build/has/getdents64.c +++ b/build/has/getdents64.c @@ -4,7 +4,6 @@ #include <dirent.h> int main(void) { - struct dirent64 de; - getdents64(3, &de, 1024); - return 0; + char buf[1024]; + return getdents64(3, (void *)buf, sizeof(buf)); } |