lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


I did a little detective work:
From the FreeBSD 8.2.0 stdio.h:
#if __BSD_VISIBLE || __POSIX_VISIBLE >= 200809
#ifndef _OFF_T_DECLARED
#define	_OFF_T_DECLARED
typedef	__off_t		off_t;
#endif
There's nothing like it in the 7.4.0 stdio.h
Looking at the POSIX standard: off_t is required to be defined by stdio.h. Search for 'stdio.h' on this page:
http://pubs.opengroup.org/onlinepubs/9699919799/
FreeBSD 8 fixes the problem:
http://www.freebsd.org/cgi/cvsweb.cgi/src/include/stdio.h.diff?r1=1.60.2.1.8.1%3ARELENG_7_4_0_RELEASE&tr1=1.1&r2=1.79.2.1.6.1%3ARELENG_8_2_0_RELEASE&tr2=1.84


On Wed, Dec 28, 2011 at 9:52 AM, Roberto Ierusalimschy <roberto@inf.puc-rio.br> wrote:

Have you checked how/where fseeko and ftello are defined in the system
header files? As I pointed out in another message, maybe there is a bug
in the header files of this version.

-- Roberto




--