diff --git a/src/gtk/utilsgtk.cpp b/src/gtk/utilsgtk.cpp index 086ef60b6b..07ca4f5658 100644 --- a/src/gtk/utilsgtk.cpp +++ b/src/gtk/utilsgtk.cpp @@ -35,6 +35,11 @@ #include #endif +#ifdef __SOLARIS__ +// somehow missing from sys/wait.h but in the system's docs +pid_t wait4(pid_t pid, int *statusp, int options, struct rusage *rusage); +#endif + //------------------------------------------------------------------------ // misc. //------------------------------------------------------------------------ diff --git a/src/gtk1/utilsgtk.cpp b/src/gtk1/utilsgtk.cpp index 086ef60b6b..07ca4f5658 100644 --- a/src/gtk1/utilsgtk.cpp +++ b/src/gtk1/utilsgtk.cpp @@ -35,6 +35,11 @@ #include #endif +#ifdef __SOLARIS__ +// somehow missing from sys/wait.h but in the system's docs +pid_t wait4(pid_t pid, int *statusp, int options, struct rusage *rusage); +#endif + //------------------------------------------------------------------------ // misc. //------------------------------------------------------------------------