Oliver Elphick <olly@lfix.co.uk> writes:
> Line 138 begins the definition of strndup(). However, strndup() is also
> declared in string.h, which is included by this file. If I rename this
> function to estrndup() (and also where it is called, further down) the
> compilation succeeds.
Hm, is strndup defined as a macro in your string.h? I suspect it's not
a good idea to be providing a local definition of something that might
be considered a standard function.
regards, tom lane