Browse code

- allow compilation without USE_TCP option

Hendrik Scholz authored on 20/09/2006 09:22:48
Showing 2 changed files
... ...
@@ -188,6 +188,7 @@ inline int fork_process(int child_id, char *desc, int make_sock)
188 188
  * @param *reader_fd_1 - pointer to return the reader_fd[1]
189 189
  * @returns the pid of the new process
190 190
  */
191
+#ifdef USE_TCP
191 192
 inline int fork_tcp_process(int child_id,char *desc,int r,int *reader_fd_1)
192 193
 {
193 194
 	int pid,old_process_no;
... ...
@@ -267,6 +268,4 @@ inline int fork_tcp_process(int child_id,char *desc,int r,int *reader_fd_1)
267 267
 		return pid;
268 268
 	}
269 269
 }
270
-
271
-
272
-
270
+#endif
... ...
@@ -88,6 +88,8 @@ inline int fork_process(int child_id,char *desc,int make_sock);
88 88
  * @param *reader_fd_1 - pointer to return the reader_fd[1]
89 89
  * @returns the pid of the new process
90 90
  */
91
+#ifdef USE_TCP
91 92
 inline int fork_tcp_process(int child_id,char *desc,int r,int *reader_fd_1);
93
+#endif
92 94
 
93 95
 #endif