From 14c6293257eae377415d84ede9d118988e6474ce Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 24 Jan 2003 11:52:51 +0000 Subject: I thought it would be smaller to inline since these funcs are small. Well, not inlining saves 300 bytes, so do that instead. -Erik --- libc/sysdeps/linux/common/xstatconv.c | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'libc/sysdeps/linux/common/xstatconv.c') diff --git a/libc/sysdeps/linux/common/xstatconv.c b/libc/sysdeps/linux/common/xstatconv.c index c8d28d411..8b432a328 100644 --- a/libc/sysdeps/linux/common/xstatconv.c +++ b/libc/sysdeps/linux/common/xstatconv.c @@ -20,7 +20,19 @@ Modified for uClibc by Erik Andersen */ -static inline void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) +#define _GNU_SOURCE +#define _LARGEFILE64_SOURCE +#include +#undef __OPTIMIZE__ +/* 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 "xstatconv.h" + +void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) { /* Convert to current kernel version of `struct stat'. */ buf->st_dev = kbuf->st_dev; @@ -59,7 +71,7 @@ static inline void __xstat_conv(struct kernel_stat *kbuf, struct stat *buf) #endif } -static inline void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) +void __xstat64_conv(struct kernel_stat64 *kbuf, struct stat64 *buf) { /* Convert to current kernel version of `struct stat64'. */ buf->st_dev = kbuf->st_dev; -- cgit v1.2.3