소스 검색

- allow compilation without USE_TCP option

Hendrik Scholz 19 년 전
부모
커밋
2254e60418
2개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 3
      pt.c
  2. 2 0
      pt.h

+ 2 - 3
pt.c

@@ -188,6 +188,7 @@ inline int fork_process(int child_id, char *desc, int make_sock)
  * @param *reader_fd_1 - pointer to return the reader_fd[1]
  * @returns the pid of the new process
  */
+#ifdef USE_TCP
 inline int fork_tcp_process(int child_id,char *desc,int r,int *reader_fd_1)
 {
 	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)
 		return pid;
 	}
 }
-
-
-
+#endif

+ 2 - 0
pt.h

@@ -88,6 +88,8 @@ inline int fork_process(int child_id,char *desc,int make_sock);
  * @param *reader_fd_1 - pointer to return the reader_fd[1]
  * @returns the pid of the new process
  */
+#ifdef USE_TCP
 inline int fork_tcp_process(int child_id,char *desc,int r,int *reader_fd_1);
+#endif
 
 #endif