Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Make this file *just* compiles again when __HAVE_MI...



details:   https://anonhg.NetBSD.org/src/rev/f5ca9d86c881
branches:  trunk
changeset: 509549:f5ca9d86c881
user:      enami <enami%NetBSD.org@localhost>
date:      Mon May 07 02:51:53 2001 +0000

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

diffstat:

 sys/kern/sys_socket.c |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r d288042e5b7a -r f5ca9d86c881 sys/kern/sys_socket.c
--- a/sys/kern/sys_socket.c     Mon May 07 02:28:55 2001 +0000
+++ b/sys/kern/sys_socket.c     Mon May 07 02:51:53 2001 +0000
@@ -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
@@ -100,9 +100,12 @@
                return (0);
 
        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)) &&
-                   (*(int *)data)) {
+#endif
+                   *(int *)data) {
                        so->so_state |= SS_ASYNC;
                        so->so_rcv.sb_flags |= SB_ASYNC;
                        so->so_snd.sb_flags |= SB_ASYNC;



Home | Main Index | Thread Index | Old Index