diff --git a/sys/sys/ipc.h b/sys/sys/ipc.h index 4d152f44a94..ffab6bd7aca 100644 --- a/sys/sys/ipc.h +++ b/sys/sys/ipc.h @@ -41,7 +41,7 @@ * SUCH DAMAGE. * * @(#)ipc.h 8.4 (Berkeley) 2/19/95 - * $Id: ipc.h,v 1.7 1996/02/24 06:08:46 hsu Exp $ + * $Id: ipc.h,v 1.7 1996/03/11 02:08:16 hsu Exp $ */ /* @@ -83,6 +83,18 @@ struct ipc_perm { #define IXSEQ_TO_IPCID(ix,perm) (((perm.seq) << 16) | (ix & 0xffff)) int ipcperm __P((struct ucred *,struct ipc_perm *,int)); +#else /* ! KERNEL */ + +/* XXX doesn't really belong here, but has been historical practice in SysV. */ + +#ifndef _POSIX_SOURCE +#include + +__BEGIN_DECLS +key_t ftok __P((const char *, int)); +__END_DECLS +#endif /* ! POSIX */ + #endif /* KERNEL */ #endif /* !_SYS_IPC_H_ */