diff --git a/historic/jam/src/execunix.c b/historic/jam/src/execunix.c index 0eb03ca3a..2b297a341 100644 --- a/historic/jam/src/execunix.c +++ b/historic/jam/src/execunix.c @@ -9,6 +9,12 @@ # include "execcmd.h" # include + +#if defined(sun) || defined(__sun) +#include // need to include unistd.h on sun for the vfork prototype +#include +#endif + # ifdef USE_EXECUNIX # ifdef NO_VFORK diff --git a/jam_src/execunix.c b/jam_src/execunix.c index 0eb03ca3a..2b297a341 100644 --- a/jam_src/execunix.c +++ b/jam_src/execunix.c @@ -9,6 +9,12 @@ # include "execcmd.h" # include + +#if defined(sun) || defined(__sun) +#include // need to include unistd.h on sun for the vfork prototype +#include +#endif + # ifdef USE_EXECUNIX # ifdef NO_VFORK