From: H. P. A. <hp...@zy...> - 2016-10-31 15:47:54
|
On 10/19/16 19:31, Dave Yeo wrote: > On 10/17/16 10:43 PM, H. Peter Anvin wrote: >> On 10/15/16 10:43, Andy Willis wrote: >>> I had to make a change after the fseeko stuff was moved from file.c to >>> nasmlib.h for off_t to be defined: >>> >>> diff --git a/include/nasmlib.h b/include/nasmlib.h >>> index b1c490c..ab47f67 100644 >>> --- a/include/nasmlib.h >>> +++ b/include/nasmlib.h >>> @@ -45,6 +45,9 @@ >>> #ifdef HAVE_STRINGS_H >>> # include <strings.h> >>> #endif >>> +#ifdef HAVE_IO_H >>> +# include <io.h> >>> +#endif >>> >>> /* >>> * tolower table -- avoids a function call on some platforms. >>> >> >> Thanks! Which compiler? >> > > I see the same issue, > ... > In file included from ./include/nasm.h:44:0, > from asm/nasm.c:48: > ./include/nasmlib.h:479:37: error: unknown type name 'off_t' > const void *nasm_map_file(FILE *fp, off_t start, off_t len); > ... > Both Andy and I are using GCC on OS/2, GCC 4.9.2 in my case. > Davee > Could you try the current git, or the latest daily build? -hpa |