Commit dcc875e4 authored by David Dykstra's avatar David Dykstra

Define the WEXITSTATUS macro for systems that don't have it.

parent 128cf584
......@@ -874,6 +874,9 @@ char *timestring(time_t t)
/****************************************************************************
like waitpid but does the WEXITSTATUS
****************************************************************************/
#ifndef WEXITSTATUS
#define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF))
#endif
void wait_process(pid_t pid, int *status)
{
waitpid(pid, status, 0);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment