Mail Archives: djgpp-workers/2003/04/11/05:52:13
Hello.
Rob Kramer wrote:
> When trying to cross compile 2.04 alpha, I had to apply the following tiny
> fix:
>
> diff -c -3 -r1.2 fsync.c
> *** src/libc/compat/unistd/fsync.c 26 Mar 2003 19:46:33 -0000 1.2
> --- src/libc/compat/unistd/fsync.c 11 Apr 2003 07:34:47 -0000
> ***************
> *** 10,15 ****
> --- 10,16 ----
> int
> fsync(int _fd)
> {
> + __dpmi_regs r;
> int oerrno = errno;
>
> /* Directory? If so, fail. */
> ***************
> *** 19,25 ****
> return -1;
> }
>
> - __dpmi_regs r;
> r.h.ah = 0x68;
> r.x.bx = _fd;
> __dpmi_int(0x21, &r);
> --- 20,25 ----
>
> Hmm, now how could it have compiled for you guys with a variable declaration
> in the middle of a function?
gcc 3.2.2 doesn't seem to complain. That's strange. Which version of gcc were
you using?
> revision 1.2
> date: 2003/03/26 19:46:33; author: richdawe; state: Exp; lines: +10 -0
> Fail for directories.
>
> Nobody compiled since 26/03, or am I missing something obvious? :)
I compiled before and after checking it in.
Thanks for the bug report. I will check your fix in.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -