[ODE] Re: configurator patch

Russ Smith russ at q12.org
Thu Jul 10 22:03:01 2003


> configurator.c really needs the attached patch (otherwise
> 'unlink' and 'exit' could be undefined, and this chokes
> gcc 3.1).

i'm surprised that gcc has a fatal error rather than just an "undefined
function" warning, but anyway i've fixed it up this way:

  /* include some system header files. <stdio.h> and <stdlib.h> are probably
   * safe on all systems, but <unistd.h> may not be, so we make explicit
   * prototypes for the other functions we need.
   */

  #include <stdio.h>
  #include <stdlib.h>

  int unlink (char *pathname);


russ.

-- 
Russell Smith
http://www.q12.org