Moved e_flags outsied of ifdef __HAVE_MINIMAL_EMUL in struct emul
and removed an ifdef that was taking care of this problem
This commit is contained in:
parent
25c31eb26c
commit
37a42fd1bf
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: sys_socket.c,v 1.28 2001/05/07 09:55:15 manu Exp $ */
|
||||
/* $NetBSD: sys_socket.c,v 1.29 2001/05/19 08:52:05 manu Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
@ -101,10 +101,8 @@ soo_ioctl(fp, cmd, data, p)
|
||||
|
||||
case FIOASYNC:
|
||||
if (
|
||||
#ifndef __HAVE_MINIMAL_EMUL
|
||||
(!(so->so_state & SS_ISAPIPE) ||
|
||||
(!(p->p_emul->e_flags & EMUL_NO_BSD_ASYNCIO_PIPE))) &&
|
||||
#endif
|
||||
*(int *)data) {
|
||||
so->so_state |= SS_ASYNC;
|
||||
so->so_rcv.sb_flags |= SB_ASYNC;
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: proc.h,v 1.128 2001/05/07 09:55:15 manu Exp $ */
|
||||
/* $NetBSD: proc.h,v 1.129 2001/05/19 08:52:05 manu Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1986, 1989, 1991, 1993
|
||||
@ -91,8 +91,8 @@ struct ps_strings;
|
||||
struct emul {
|
||||
const char *e_name; /* Symbolic name */
|
||||
const char *e_path; /* Extra emulation path (NULL if none)*/
|
||||
#ifndef __HAVE_MINIMAL_EMUL
|
||||
int e_flags; /* Miscellaneous flags, see above */
|
||||
#ifndef __HAVE_MINIMAL_EMUL
|
||||
/* Syscall handling function */
|
||||
const int *e_errno; /* Errno array */
|
||||
int e_nosys; /* Offset of the nosys() syscall */
|
||||
|
Loading…
Reference in New Issue
Block a user