9 |
|
|
10 |
|
#include "copyright.h" |
11 |
|
|
12 |
+ |
#include "platform.h" |
13 |
+ |
|
14 |
|
#include "standard.h" |
15 |
|
|
16 |
< |
#include "color.h" |
16 |
> |
#include "paths.h" |
17 |
|
|
18 |
|
#include "driver.h" |
19 |
|
|
18 |
– |
#include "vfork.h" |
19 |
– |
|
20 |
|
#ifndef DEVPATH |
21 |
|
#define DEVPATH getenv("PATH") /* device search path */ |
22 |
|
#endif |
78 |
|
eputs(": not found\n"); |
79 |
|
return(NULL); |
80 |
|
} |
81 |
+ |
#ifdef RHAS_FORK_EXEC |
82 |
|
/* open communication pipes */ |
83 |
|
if (pipe(p1) == -1 || pipe(p2) == -1) |
84 |
|
goto syserr; |
103 |
|
syserr: |
104 |
|
perror(dname); |
105 |
|
return(NULL); |
106 |
+ |
|
107 |
+ |
#else /* ! RHAS_FORK_EXEC */ |
108 |
+ |
|
109 |
+ |
eputs(dname); |
110 |
+ |
eputs(": no fork/exec\n"); |
111 |
+ |
return(NULL); |
112 |
+ |
|
113 |
+ |
#endif /* ! RHAS_FORK_EXEC */ |
114 |
|
} |
115 |
|
|
116 |
|
|