diff options
author | Eric Andersen <andersen@codepoet.org> | 2002-04-09 08:27:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2002-04-09 08:27:21 +0000 |
commit | 30bd96dabe71bc0cadc1638101e910eefb1e1e61 (patch) | |
tree | 517fec806c921dfdb82ce6c68a523a49b7655ab7 /libc/misc/statfs | |
parent | 5c86ab5bc17f0a4f87065a7acc6d9390f708a186 (diff) |
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
Diffstat (limited to 'libc/misc/statfs')
-rw-r--r-- | libc/misc/statfs/statfs64.c | 15 |
1 files changed, 8 insertions, 7 deletions
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 <features.h> -#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 <errno.h> #include <string.h> -#include <sys/statfs.h> #include <stddef.h> +#include <sys/statfs.h> + +#if defined __UCLIBC_HAVE_LFS__ /* Return information about the filesystem on which FILE resides. */ int statfs64 (const char *file, struct statfs64 *buf) |