On Wed, 30 Jul 2008, Chris Young wrote:
On Thu, 24 Jul 2008 23:05:01 +0100, Rob Kendrick wrote:
The defines enable the features of the C library that we require on
various operating systems. On *BSD libc, glibc and Solaris, you need
this collection of #defines to enable modern library functionality.
It surprises me that these matter, as if your C library triggers on
them, the only sensible thing it could do is enable more
functionality. This may point to an issue in the C library on your
host system. Try removing one at a time to see if it's just a specific
one that causes the issue, and then grep your standard headers to see
what triggers on it.
I put them all back and can't reproduce the problem again, although
strncasecmp is still crashing.
Make sure you've got no compiler warnings along the lines of:
warning: implicit declaration of function 'strncasecmp'
btw, file: URLs seem to be adding a slash to the beginning of the
path, no matter how I specify them. This is very annoying, as a slash
at the start of a path indicates the parent of the current directory.
file://default.css will translate to /default.css which looks in the
parent directory for the file default.css.
The correct form for file: URLs (and what NetSurf uses internally) is
file:///path/to/file. It /should/ leave the path part alone if there's the
right number of slashes at the start. If it doesn't, then that's something
that needs investigating.
J.