ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/rt/devcomm.c
(Generate patch)

Comparing ray/src/rt/devcomm.c (file contents):
Revision 2.7 by greg, Tue Feb 25 02:47:22 2003 UTC vs.
Revision 2.10 by greg, Mon Nov 10 16:52:25 2003 UTC

# Line 9 | Line 9 | static const char      RCSid[] = "$Id$";
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
# Line 78 | Line 78 | char   *dname, *id;
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;
# Line 102 | Line 103 | char   *dname, *id;
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  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines