summaryrefslogtreecommitdiffstats
path: root/build/has/getdents.c
diff options
context:
space:
mode:
Diffstat (limited to 'build/has/getdents.c')
-rw-r--r--build/has/getdents.c5
1 files changed, 2 insertions, 3 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));
}