[xml] 2.4.8: use of unlink



Hiya,

In the source for 2.4.8, xmlcatalog.c, line 463 you've got :

                    if (xmlCatalogIsEmpty(catal)) {
                     unlink(argv[i + 1]);
                    } else {

unlink is not a standard C function. The standard C function is remove (q.v.
ISO/IEC 9899:1999 7.19.4.1, if I've read the spec right). unlink is not
present on RISC OS - only the standard C library is present - and thus this
causes a link failure.

For my port, I'm merely going to change the unlink to be 'remove'.

-- 
Gerph {djf0-.3w6e2w2.226,6q6w2q2,2.3,2m4}
URL: http://www.movspclr.co.uk/
... Eyes to the heavens, screaming at the sky;
    Trying to send you messages, but choking on goodbye.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]