X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/8ef6a930daefddf6bb39fefbea0baaed09071342..44c4a3348693414bace13852e50d926c1aa9f08b:/src/motif/utilsexc.cpp diff --git a/src/motif/utilsexc.cpp b/src/motif/utilsexc.cpp index 4a1c2709e0..05e0fb5ef7 100644 --- a/src/motif/utilsexc.cpp +++ b/src/motif/utilsexc.cpp @@ -19,6 +19,7 @@ #include #include #include +#include #ifdef VMS /*steve*/ @@ -35,11 +36,11 @@ #else -#if defined(_AIX) || defined(__xlC__) +#if defined(__AIX__) || defined(__xlC__) #include #include #else -#ifndef DG +#ifndef __DATA_GENERAL__ #include #endif #endif @@ -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);