9 |
|
#include <ctype.h> |
10 |
|
#include <stdio.h> |
11 |
|
|
12 |
+ |
#include "standard.h" |
13 |
|
#include "platform.h" |
14 |
|
#include "mkillum.h" |
15 |
|
|
138 |
|
{ |
139 |
|
int rtstat; |
140 |
|
|
141 |
< |
rtstat = close_process(rt.pd); |
141 |
> |
rtstat = close_process(&(rt.pd)); |
142 |
|
if (status == 0) |
143 |
|
if (rtstat < 0) |
144 |
|
error(WARNING, |
158 |
|
ofun[OBJ_SPHERE].funp = o_sphere; |
159 |
|
ofun[OBJ_RING].funp = o_ring; |
160 |
|
/* set up signal handling */ |
161 |
< |
#ifndef _WIN32 /* XXX what do we use instead? */ |
161 |
> |
#ifdef SIGPIPE /* not present on Windows */ |
162 |
|
signal(SIGPIPE, quit); |
163 |
|
#endif |
164 |
|
/* start rtrace process */ |
165 |
|
errno = 0; |
166 |
< |
maxbytes = open_process(rt.pd, rtargv); |
166 |
> |
maxbytes = open_process(&(rt.pd), rtargv); |
167 |
|
if (maxbytes == 0) { |
168 |
|
eputs(rtargv[0]); |
169 |
|
eputs(": command not found\n"); |