Prevent using <fts.h> with _FILE_OFFSET_BITS=64.
authordrepper <drepper>
Mon, 5 Nov 2001 20:58:39 +0000 (20:58 +0000)
committerdrepper <drepper>
Mon, 5 Nov 2001 20:58:39 +0000 (20:58 +0000)
io/fts.h

index 2b500e0..a22c7bb 100644 (file)
--- a/io/fts.h
+++ b/io/fts.h
 #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 */