Hi,
I’m just trying to compile 1333 on Solaris but xml-rpc.c assumes d_type is present in dirent:
xml-rpc.c: In function `xml_browse_path’:
xml-rpc.c:446: error: structure has no member named `d_type’
xml-rpc.c:446: error: `DT_REG’ undeclared (first use in this function)
xml-rpc.c:446: error: (Each undeclared identifier is reported only once
xml-rpc.c:446: error: for each function it appears in.)
xml-rpc.c:449: error: structure has no member named `d_type’
xml-rpc.c:449: error: `DT_DIR’ undeclared (first use in this function)
xml-rpc.c:450: error: structure has no member named `d_type’
xml-rpc.c:461: error: structure has no member named `d_type’
xml-rpc.c:463: error: structure has no member named `d_type’
xml-rpc.c:463: error: `DT_LNK’ undeclared (first use in this function)
d_type is not present in POSIX, so the code should be prepared via #ifdef to stat() the file in case d_type is not supported.
Ron: Is there a quick workaround or would you be able to make the code independent of d_type’s presence in the target platform?
Best regards,
Gonzo