aboutsummaryrefslogtreecommitdiff
path: root/src/linux/getdents.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/linux/getdents.c')
-rw-r--r--src/linux/getdents.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/linux/getdents.c b/src/linux/getdents.c
index 97f76e14..ef82756d 100644
--- a/src/linux/getdents.c
+++ b/src/linux/getdents.c
@@ -8,3 +8,11 @@ int getdents(int fd, struct dirent *buf, size_t len)
if (len>INT_MAX) len = INT_MAX;
return syscall(SYS_getdents, fd, buf, len);
}
+
+
+#ifdef TEST
+int
+main(void) {
+ return 0;
+}
+#endif