Make this file *just* compiles again when __HAVE_MINIMAL_EMUL is defined.

This commit is contained in:
enami 2001-05-07 02:51:53 +00:00
parent 362af21bc7
commit 8e5a4722c5
1 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: sys_socket.c,v 1.26 2001/05/07 02:28:55 enami Exp $ */ /* $NetBSD: sys_socket.c,v 1.27 2001/05/07 02:51:53 enami Exp $ */
/* /*
* Copyright (c) 1982, 1986, 1990, 1993 * Copyright (c) 1982, 1986, 1990, 1993
@ -100,9 +100,12 @@ soo_ioctl(fp, cmd, data, p)
return (0); return (0);
case FIOASYNC: case FIOASYNC:
if ((!(so->so_state & SS_ISAPIPE) || if (
#ifndef __HAVE_MINIMAL_EMUL
(!(so->so_state & SS_ISAPIPE) ||
(p->p_emul->e_flags & EMUL_BSD_ASYNCIO_PIPE)) && (p->p_emul->e_flags & EMUL_BSD_ASYNCIO_PIPE)) &&
(*(int *)data)) { #endif
*(int *)data) {
so->so_state |= SS_ASYNC; so->so_state |= SS_ASYNC;
so->so_rcv.sb_flags |= SB_ASYNC; so->so_rcv.sb_flags |= SB_ASYNC;
so->so_snd.sb_flags |= SB_ASYNC; so->so_snd.sb_flags |= SB_ASYNC;