Only #include <sys/shm.h> if SYSVSHM (for shmexit() prototype)

Add missing #include <sys/sem.h> if SYSVSEM  (for semexit() prototype)
This commit is contained in:
Peter Wemm 1996-01-01 12:23:39 +00:00
parent 03897e52bd
commit 780dc5a8b9

View file

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)kern_exit.c 8.7 (Berkeley) 2/12/94
* $Id: kern_exit.c,v 1.21 1995/12/07 12:46:41 davidg Exp $
* $Id: kern_exit.c,v 1.22 1995/12/27 15:24:15 joerg Exp $
*/
#include <sys/param.h>
@ -58,9 +58,15 @@
#include <sys/resourcevar.h>
#include <sys/signalvar.h>
#include <sys/ptrace.h>
#include <sys/shm.h>
#include <sys/filedesc.h>
#ifdef SYSVSHM
#include <sys/shm.h>
#endif
#ifdef SYSVSEM
#include <sys/sem.h>
#endif
#include <machine/cpu.h>
#ifdef COMPAT_43
#include <machine/reg.h>