From: Rob Kramer Newsgroups: comp.os.msdos.djgpp Subject: 2.04 fsync buglet? Date: Fri, 11 Apr 2003 15:41:58 +0800 Organization: Singapore Telecommunications Ltd Lines: 43 Message-ID: NNTP-Posting-Host: 203.125.62.93 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit User-Agent: KNode/0.7.2 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Hey, 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? 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? :) Cheers! Rob