about summary refs log tree commit diff
path: root/io/fts.h
diff options
context:
space:
mode:
Diffstat (limited to 'io/fts.h')
-rw-r--r--io/fts.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/io/fts.h b/io/fts.h
index 2b500e0e4a..a22c7bb9ca 100644
--- a/io/fts.h
+++ b/io/fts.h
@@ -35,6 +35,13 @@
 #include <features.h>
 #include <sys/types.h>
 
+/* The fts interface is incompatible with the LFS interface which
+   transparently uses the 64-bit file access functions.  */
+#ifdef __USE_FILE_OFFSET64
+# error "<fts.h> cannot be used with -D_FILE_OFFSET_BITS==64"
+#endif
+
+
 typedef struct {
 	struct _ftsent *fts_cur;	/* current node */
 	struct _ftsent *fts_child;	/* linked list of children */