Subject: port-pmax/3542: Patch-o in ultrix_misc.c breaks compiles if SYSV_SHM defined
To: None <gnats-bugs@gnats.netbsd.org>
From: Ted Lemon <mellon@adagio.fugue.com>
List: netbsd-bugs
Date: 04/25/1997 17:33:38
>Number:         3542
>Category:       port-pmax
>Synopsis:       Patch-o in ultrix_misc.c breaks compiles if SYSV_SHM defined
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    gnats-admin (GNATS administrator)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Apr 25 17:35:01 1997
>Last-Modified:
>Originator:     Ted Lemon
>Organization:
Barefoot Consulting
>Release:        4/25/97
>Environment:
System: NetBSD adagio.fugue.com 1.2D NetBSD 1.2D (ADAGIO) #8: Sun Apr 20 21:51:46 PDT 1997 mellon@toccata.fugue.com:/NetBSD/current/current/sys/arch/pmax/compile/ADAGIO pmax


>Description:
	ultrix_misc.c compiles if SYSV_SHM is not defined, but fails if
	it is.
>How-To-Repeat:
	Build a pmax kernel with SYSV_SHM.
>Fix:
	Apply this patch:

Index: ultrix_misc.c
===================================================================
RCS file: /cvsroot/src/sys/compat/ultrix/ultrix_misc.c,v
retrieving revision 1.30
diff -c -2 -r1.30 ultrix_misc.c
*** ultrix_misc.c	1997/04/06 23:26:53	1.30
--- ultrix_misc.c	1997/04/26 00:30:09
***************
*** 648,654 ****
  		return (EINVAL);
  	}
! }
! #endif	/* SYSVSHM */
! 
  	return (EOPNOTSUPP);
  }
--- 648,653 ----
  		return (EINVAL);
  	}
! #else
  	return (EOPNOTSUPP);
+ #endif	/* SYSVSHM */
  }
>Audit-Trail:
>Unformatted: