1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-11-24 07:40:52 +00:00

Follow r329348 in ipcs for getting rid of the requirement to include SysV IPC

headers with _KERNEL

Reviewed by:	jhb
Differential Revision:	https://reviews.freebsd.org/D14398
This commit is contained in:
Li-Wen Hsu 2018-02-16 18:07:04 +00:00
parent c2bddfdc51
commit ab4a4d40ae
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329390
2 changed files with 10 additions and 8 deletions

View File

@ -35,11 +35,12 @@ __FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/sysctl.h>
#define _KERNEL
#include <sys/sem.h>
#include <sys/shm.h>
#define _WANT_SYSVMSG_INTERNALS
#include <sys/msg.h>
#undef _KERNEL
#define _WANT_SYSVSEM_INTERNALS
#include <sys/sem.h>
#define _WANT_SYSVSHM_INTERNALS
#include <sys/shm.h>
#include <assert.h>
#include <err.h>

View File

@ -32,11 +32,12 @@ __FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/proc.h>
#define _KERNEL
#include <sys/sem.h>
#include <sys/shm.h>
#define _WANT_SYSVMSG_INTERNALS
#include <sys/msg.h>
#undef _KERNEL
#define _WANT_SYSVSEM_INTERNALS
#include <sys/sem.h>
#define _WANT_SYSVSHM_INTERNALS
#include <sys/shm.h>
#include <err.h>
#include <fcntl.h>