From: Jonathan Wakely (cow_at_[hidden])
Date: 2005-01-19 11:42:27


On Wed, Jan 19, 2005 at 08:07:33AM -0800, SourceForge.net wrote:

> execunix.c(225): warning #266: function declared implicitly
> if ((pid = vfork()) == 0)

execunix.c says:

#if defined(sun) || defined(__sun)
#include <unistd.h> /* need to include unistd.h on sun for the vfork
prototype*/
#include <wait.h>
#endif

Why does it only include <unistd.h> under Solaris?

POSIX requires <unistd.h> for execvp(), lseek() and most of the other
functions failing in the bug report, including vfork() (if available).

jon