[tpop3d-discuss] Re: FreeBSD listener_new: bind problem
Chris Lightfoot
chris at ex-parrot.com
Thu, 21 Aug 2003 16:35:47 +0100
> You find bind(2) returns -1 with errno == EADDRNOTAVAIL.
Ah. One possibility. Try this:
diff -u -r1.88 main.c
--- main.c 14 Jul 2003 23:31:20 -0000 1.88
+++ main.c 21 Aug 2003 15:34:52 -0000
@@ -167,6 +167,8 @@
char *regex = NULL;
#endif
+ sin.sin_family = AF_INET;
+
s = *ll;
/* Address. */
--
``Falmouth Town station is closed due to flooding.
Please use Falmouth Docks.'' (BBC News)