10 |
|
#include "copyright.h" |
11 |
|
|
12 |
|
#include <sys/types.h> |
13 |
< |
#include <sys/wait.h> /* XXX platform specific */ |
13 |
> |
#ifndef _WIN32 |
14 |
> |
#include <sys/wait.h> |
15 |
> |
#endif |
16 |
|
|
17 |
+ |
#include "paths.h" |
18 |
|
#include "platform.h" |
19 |
|
#include "standard.h" |
20 |
|
#include "driver.h" |
57 |
|
getstate(); |
58 |
|
/* set error vectors */ |
59 |
|
erract[COMMAND].pf = comm_comout; |
60 |
+ |
/* doesn't work with raypcalls.c |
61 |
|
if (erract[WARNING].pf != NULL) |
62 |
|
erract[WARNING].pf = comm_comout; |
63 |
+ |
*/ |
64 |
|
return(&comm_driver); |
65 |
|
} |
66 |
|
|
147 |
|
fclose(devin); |
148 |
|
if (devchild < 0) |
149 |
|
return; |
150 |
+ |
#ifndef _WIN32 |
151 |
|
while ((pid = wait(0)) != -1 && pid != devchild) |
152 |
|
; |
153 |
+ |
#endif |
154 |
|
} |
155 |
|
|
156 |
|
|