X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ef6a930daefddf6bb39fefbea0baaed09071342..c18ecb1164f8f8255b03374a15b381d14a096335:/src/motif/utilsexc.cpp diff --git a/src/motif/utilsexc.cpp b/src/motif/utilsexc.cpp index 4a1c2709e0..a748ea126e 100644 --- a/src/motif/utilsexc.cpp +++ b/src/motif/utilsexc.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #ifdef VMS /*steve*/ @@ -51,7 +52,21 @@ #endif +#ifdef __SVR4__ + #include +#endif + +#ifdef __SOLARIS__ +// somehow missing from sys/wait.h but in the system's docs +extern "C" +{ + pid_t wait4(pid_t pid, int *statusp, int options, struct rusage + *rusage); +} +#endif + #include +#include #include @@ -82,7 +97,7 @@ void xt_notify_end_process(XtPointer client, int *fid, /* wait4 is not part of any standard, use at own risk * not sure what wait4 does, but wait3 seems to be closest, whats a digit ;-) * --- offer@sgi.com */ -#if !defined(__sgi) +#if !defined(__sgi) && !defined(__ALPHA__) wait4(process_data->pid, NULL, 0, NULL); #else wait3((int *) NULL, 0, (rusage *) NULL);