On some systems (NetBSD 1.6 and Solaris 9, at least), GCC doesn't understand
[u/mdw/putty] / unix / uxnet.c
index 46959e2..31b1292 100644 (file)
@@ -576,6 +576,7 @@ static int try_connect(Actual_Socket sock)
 
       default:
        assert(0 && "unknown address family");
+       exit(1); /* XXX: GCC doesn't understand assert() on some systems. */
     }
 
     fl = fcntl(s, F_GETFL);