Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. =================================================================== RCS file: /ftp/cvs/cvsroot/src/sys/kern/uipc_socket.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -p -r1.17 -r1.18 --- src/sys/kern/uipc_socket.c 1994/10/30 21:48:07 1.17 +++ src/sys/kern/uipc_socket.c 1995/04/22 19:43:04 1.18 @@ -1,4 +1,4 @@ -/* $NetBSD: uipc_socket.c,v 1.17 1994/10/30 21:48:07 cgd Exp $ */ +/* $NetBSD: uipc_socket.c,v 1.18 1995/04/22 19:43:04 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1988, 1990, 1993 @@ -91,8 +91,11 @@ socreate(dom, aso, type, proto) return (error); } #ifdef COMPAT_SUNOS - if (p->p_emul == EMUL_SUNOS && type == SOCK_DGRAM) - so->so_options |= SO_BROADCAST; + { + extern struct emul emul_sunos; + if (p->p_emul == &emul_sunos && type == SOCK_DGRAM) + so->so_options |= SO_BROADCAST; + } #endif *aso = so; return (0);