Re: [xml] 2.4.8: use of unlink



On Sun, Nov 04, 2001 at 10:07:12PM +0000, Justin Fletcher wrote:
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'.

  Right, I fixed this,

    thanks

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/



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