Sfoglia il codice sorgente

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 anni fa
parent
commit
193510fefc
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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;