$NetBSD: patch-aq,v 1.4 2013/09/10 14:15:11 joerg Exp $ --- incoming/connect.c.orig 1996-04-30 07:02:43.000000000 +0000 +++ incoming/connect.c @@ -49,14 +49,16 @@ static char copyright[] = #include #include #include +#include #include #include #include #include -#include +#include #include #include #include +#include static void pump PROTO ((int, int)); @@ -85,7 +87,7 @@ int tcp_connect (tty) name.sin_family = AF_INET; /* Allow numeric or symbolic port names... */ - if (se = getservbyname (modemcap.connect_port, "tcp")) + if ((se = getservbyname (modemcap.connect_port, "tcp"))) name.sin_port = se -> s_port; else name.sin_port = htons (atoi (modemcap.connect_port));