summaryrefslogtreecommitdiff
path: root/libc/misc/dirent/scandir64.c
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/dirent/scandir64.c')
-rw-r--r--libc/misc/dirent/scandir64.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libc/misc/dirent/scandir64.c b/libc/misc/dirent/scandir64.c
index 6b0892191..6c6697b42 100644
--- a/libc/misc/dirent/scandir64.c
+++ b/libc/misc/dirent/scandir64.c
@@ -24,16 +24,17 @@
*/
#include <features.h>
+#ifdef __UCLIBC_HAVE_LFS__
#define _FILE_OFFSET_BITS 64
#define __USE_LARGEFILE64
#define __USE_FILE_OFFSET64
+#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <sys/types.h>
#include "dirstream.h"
-#ifdef __UCLIBC_HAVE_LFS__
/*
* FIXME: This is a simple hack version which doesn't sort the data, and