Indeed. I just caught that too. grep failed me. Pull this patch.
Tue Jun 19 15:15:49 EDT 2007 [EMAIL PROTECTED] * fix some unistd functions It adds declarations for usleep, ftruncate, and truncate (although I don't think truncate is actually implemented yet, but it should be). You'll either need to rebuild newlib (make upstream_clean_newlib && make) or just manually apply the patch to upstream/install/mips-unknown-elf/include/sys/unistd.h -Brian On Tue, Jun 19, 2007 at 12:12:27PM -0700, Joe Wilson wrote: > > These definitions in sys/unistd.h are not included in a nested > compile due to the #if - neither __CYGWIN__ nor __rtems__ are > defined. If __rtems__ is #defined then all sorts of other things > break. > > #if defined(__CYGWIN__) || defined(__rtems__) > int _EXFUN(getdtablesize, (void)); > int _EXFUN(setdtablesize, (int)); > useconds_t _EXFUN(ualarm, (useconds_t __useconds, useconds_t __interval)); > unsigned _EXFUN(usleep, (unsigned int __useconds)); > int _EXFUN(ftruncate, (int __fd, off_t __length)); > int _EXFUN(truncate, (const char *, off_t __length)); > > --- Brian Alliet <[EMAIL PROTECTED]> wrote: > > On Mon, Jun 18, 2007 at 10:55:09PM -0700, Joe Wilson wrote: > > > These patches are not in the 2007-01-12 nestedvm tarball, nor are they > > > in the NestedVM repository, as far as I know. I recommend applying > > > them to simulate a more UNIX-like behavior on Windows. > > > > These were two patches that I was a little uneasy about and I haven't > > got a chance to look into it some more. Keep bugging me about it. > > These patches are necessary for the correct functioning of SQLite on > Windows. Add them if you like. I use them locally, regardless. > > > > If you could also make a patch for mips newlib ftruncate() and usleep() > > > declarations that would be great. Thanks. > > > > What is wrong with usleep? > > usleep() also results in a warning that there is an implicit > declaration - i.e., no declaration as per the sys/unistd above, > but the consequences of that one are not bad as long as no one calls > it with a long long argument. In the case of SQLite, it is always > passed a 32 bit value, so no issue. > > > Hey, was this stuff discussed on the sqllitejdbc list? I don't think > > I'm on that. I'll subscribe if there is sufficient nestedvm related > > stuff there. > > A fair number of Nested issues come up on the other list. > > The primary yet unsolved issue for users of sqlitejdbc on Windows is how > to specify an absolute path using driver letters (C:) in the sqlitejdbc > connect string. At this time, they can only specify relative file paths > when using the sqlite driver with nested. I'm not sure this is a nested > issue or a sqlite jdbc driver issue. > > > > ____________________________________________________________________________________ > Looking for a deal? Find great prices on flights and hotels with Yahoo! > FareChase. > http://farechase.yahoo.com/ > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "SQLiteJDBC" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sqlitejdbc?hl=en -~----------~----~----~----~------~----~------~--~---
