瀏覽代碼

If SER compiled without USE_TCP don't try to lookup for a function
t_relay_to_tcp. This fixes acc module loading when SER compiled without
USE_TCP.

Maxim Sobolev 21 年之前
父節點
當前提交
193510fefc
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      modules/tm/tm_load.c

+ 2 - 0
modules/tm/tm_load.c

@@ -49,10 +49,12 @@ int load_tm( struct tm_binds *tmb)
 		LOG(L_ERR, LOAD_ERROR "'t_newtran' not found\n");
 		return -1;
 	}
+#ifdef USE_TCP
 	if (!( tmb->t_relay_to_tcp=find_export(T_RELAY_TO_TCP, 2, 0)) ) {
 		LOG(L_ERR, LOAD_ERROR "'t_relay_to_tcp' not found\n");
 		return -1;
 	}
+#endif
 	if (!( tmb->t_relay_to_udp=find_export(T_RELAY_TO_UDP, 2, 0)) ) {
 		LOG(L_ERR, LOAD_ERROR "'t_relay_to_udp' not found\n");
 		return -1;