summaryrefslogtreecommitdiff
path: root/libc/misc/file
diff options
context:
space:
mode:
Diffstat (limited to 'libc/misc/file')
-rw-r--r--libc/misc/file/Makefile.in4
-rw-r--r--libc/misc/file/isfdtype.c7
2 files changed, 3 insertions, 8 deletions
diff --git a/libc/misc/file/Makefile.in b/libc/misc/file/Makefile.in
index b94efa67f..a19ac5790 100644
--- a/libc/misc/file/Makefile.in
+++ b/libc/misc/file/Makefile.in
@@ -13,12 +13,12 @@ MISC_FILE_OUT := $(top_builddir)libc/misc/file
CSRC-y := $(wildcard $(MISC_FILE_DIR)/*.c)
CSRC_LFS := $(wildcard $(MISC_FILE_DIR)/*64.c)
CSRC-y := $(filter-out $(CSRC_LFS),$(CSRC-y))
-CSRC-$(UCLIBC_HAS_LFS) += $(CSRC_LFS)
+CSRC-y += $(CSRC_LFS)
MISC_FILE_OBJ := $(patsubst $(MISC_FILE_DIR)/%.c,$(MISC_FILE_OUT)/%.o,$(CSRC-y))
libc-y += $(MISC_FILE_OBJ)
-libc-nomulti-$(UCLIBC_HAS_LFS) += $(MISC_FILE_OUT)/lockf64.o
+libc-nomulti-y += $(MISC_FILE_OUT)/lockf64.o
objclean-y += CLEAN_libc/misc/file
diff --git a/libc/misc/file/isfdtype.c b/libc/misc/file/isfdtype.c
index 4d9199bd1..27fb01ca7 100644
--- a/libc/misc/file/isfdtype.c
+++ b/libc/misc/file/isfdtype.c
@@ -20,12 +20,7 @@
#include <sys/stat.h>
#include <sys/socket.h>
#include <sys/types.h>
-#ifdef __UCLIBC_HAS_LFS__
-# include <_lfs_64.h>
-#else
-# define stat64 stat
-# define fstat64 fstat
-#endif
+#include <_lfs_64.h>
int
isfdtype (int fildes, int fdtype)