9 |
|
|
10 |
|
#include "copyright.h" |
11 |
|
|
12 |
+ |
#include "platform.h" |
13 |
+ |
|
14 |
|
#include "standard.h" |
15 |
|
|
16 |
|
#include "color.h" |
80 |
|
eputs(": not found\n"); |
81 |
|
return(NULL); |
82 |
|
} |
83 |
+ |
#ifdef RHAS_FORK_EXEC |
84 |
|
/* open communication pipes */ |
85 |
|
if (pipe(p1) == -1 || pipe(p2) == -1) |
86 |
|
goto syserr; |
105 |
|
syserr: |
106 |
|
perror(dname); |
107 |
|
return(NULL); |
108 |
+ |
|
109 |
+ |
#else /* ! RHAS_FORK_EXEC */ |
110 |
+ |
|
111 |
+ |
eputs(dname); |
112 |
+ |
eputs(": no fork/exec\n"); |
113 |
+ |
return(NULL); |
114 |
+ |
|
115 |
+ |
#endif /* ! RHAS_FORK_EXEC */ |
116 |
|
} |
117 |
|
|
118 |
|
|