more COMPAT_SUNOS changes.

This commit is contained in:
deraadt 1994-01-23 06:06:21 +00:00
parent 316b930486
commit abf6a6bfdd
3 changed files with 8 additions and 4 deletions

View File

@ -1 +1 @@
revision 1.32 intentionally removed
revision 1.33 intentionally removed

View File

@ -31,13 +31,13 @@
* SUCH DAMAGE.
*
* from: @(#)tty_compat.c 7.10 (Berkeley) 5/9/91
* $Id: tty_compat.c,v 1.7 1993/12/18 04:22:09 mycroft Exp $
* $Id: tty_compat.c,v 1.8 1994/01/23 06:06:25 deraadt Exp $
*/
/*
* mapping routines for old line discipline (yuck)
*/
#ifdef COMPAT_43
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
#include <sys/param.h>
#include <sys/systm.h>

View File

@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* from: @(#)uipc_socket.c 7.28 (Berkeley) 5/4/91
* $Id: uipc_socket.c,v 1.9 1993/12/18 04:22:28 mycroft Exp $
* $Id: uipc_socket.c,v 1.10 1994/01/23 06:06:27 deraadt Exp $
*/
#include <sys/param.h>
@ -89,6 +89,10 @@ socreate(dom, aso, type, proto)
sofree(so);
return (error);
}
#ifdef COMPAT_SUNOS
if (p->p_emul == EMUL_SUNOS && type == SOCK_DGRAM)
so->so_options |= SO_BROADCAST;
#endif
*aso = so;
return (0);
}