Correct use HAVE_HSTRERROR
[tedtools.git] / tcp.c
diff --git a/tcp.c b/tcp.c
index 112e98a..a9295e4 100644 (file)
--- a/tcp.c
+++ b/tcp.c
@@ -171,11 +171,7 @@ TC_fillConnection(TC_Connection *sc, char *name, u_int32_t port) {
                        memcpy(&sc->serv_addr.sin_addr.s_addr, host->h_addr_list[0], 
                                sizeof(&sc->serv_addr.sin_addr.s_addr));
                } else {
-#ifdef HAVE_HSTRERROR
                        tlog(TL_CRIT,"gethostbyname: %s - %s", name, hstrerror(h_errno));
-#else
-                       tlog(TL_CRIT,"gethostbyname: %s - %s", name, strerror(errno));
-#endif
                        sc->state = CS_ERROR;
                        return sc;
                }