From 30bd96dabe71bc0cadc1638101e910eefb1e1e61 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 9 Apr 2002 08:27:21 +0000 Subject: undefine __USE_FILE_OFFSET64, since we absolutely do _NOT_ want interfaces silently renamed under us or very bad things will happen. In this case, statfs64() ended up recurively calling statfs64() instead of statfs().... -Erik --- libc/misc/statfs/statfs64.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'libc/misc/statfs') diff --git a/libc/misc/statfs/statfs64.c b/libc/misc/statfs/statfs64.c index 187929286..b237624c3 100644 --- a/libc/misc/statfs/statfs64.c +++ b/libc/misc/statfs/statfs64.c @@ -19,23 +19,24 @@ #include -#ifdef __UCLIBC_HAVE_LFS__ - #if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS != 64 #undef _FILE_OFFSET_BITS #define _FILE_OFFSET_BITS 64 #endif -#ifndef __USE_FILE_OFFSET64 -# define __USE_FILE_OFFSET64 1 -#endif #ifndef __USE_LARGEFILE64 # define __USE_LARGEFILE64 1 #endif +/* We absolutely do _NOT_ want interfaces silently + * renamed under us or very bad things will happen... */ +#ifdef __USE_FILE_OFFSET64 +# undef __USE_FILE_OFFSET64 +#endif -#include #include -#include #include +#include + +#if defined __UCLIBC_HAVE_LFS__ /* Return information about the filesystem on which FILE resides. */ int statfs64 (const char *file, struct statfs64 *buf) -- cgit v1.2.3