722c722,727 < int pfd[2], selret, readret, waitstat = 0; --- > int pfd[2], selret, readret; > #ifdef HAVE_TYPE_UNIONWAIT > union wait waitstat; > #else > int waitstat = 0; > #endif 1001a1007,1009 > #ifdef HAVE_TYPE_UNIONWAIT > waitret = waitpid(fpid, &waitstat.w_status, WNOHANG); > #else 1002a1011 > #endif 1004a1014,1016 > #ifdef HAVE_TYPE_UNIONWAIT > waitret = waitpid(fpid, &waitstat.w_status, WNOHANG); > #else 1005a1018 > #endif 1013a1027,1029 > #ifdef HAVE_TYPE_UNIONWAIT > waitret = waitpid(fpid, &waitstat.w_status, WNOHANG); > #else 1014a1031 > #endif 1019a1037,1039 > #ifdef HAVE_TYPE_UNIONWAIT > if ((waitret = waitpid(fpid, &waitstat.w_status, WNOHANG)) > 0) { > #else 1020a1041 > #endif 1048a1070 > #ifdef HAVE_TYPE_UNIONWAIT 1050c1072,1076 < (int)waitret, waitstat)); --- > (int)waitret, waitstat.w_status)); > #else > CTRACE((tfp, "LYGetHostByName: NSL_FORK child %d exited, status 0x%x.\n", > (int)waitret, waitstat)); > #endif 1061,1062c1087,1093 < CTRACE((tfp, "LYGetHostByName: NSL_FORK child %d is stopped, status 0x%x!\n", < (int)waitret, waitstat)); --- > #ifdef HAVE_TYPE_UNIONWAIT > CTRACE((tfp, "LYGetHostByName: NSL_FORK child %d is stopped, status 0x%x!\n", > (int)waitret, waitstat.w_status)); > #else > CTRACE((tfp, "LYGetHostByName: NSL_FORK child %d is stopped, status 0x%x!\n", > (int)waitret, waitstat)); > #endif