Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Feb 2018 18:07:04 +0000 (UTC)
From:      Li-Wen Hsu <lwhsu@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r329390 - head/usr.bin/ipcs
Message-ID:  <201802161807.w1GI74Z1038034@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: lwhsu (ports committer)
Date: Fri Feb 16 18:07:04 2018
New Revision: 329390
URL: https://svnweb.freebsd.org/changeset/base/329390

Log:
  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

Modified:
  head/usr.bin/ipcs/ipc.c
  head/usr.bin/ipcs/ipcs.c

Modified: head/usr.bin/ipcs/ipc.c
==============================================================================
--- head/usr.bin/ipcs/ipc.c	Fri Feb 16 18:04:27 2018	(r329389)
+++ head/usr.bin/ipcs/ipc.c	Fri Feb 16 18:07:04 2018	(r329390)
@@ -35,11 +35,12 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/types.h>
 #include <sys/sysctl.h>
-#define _KERNEL
+#define	_WANT_SYSVMSG_INTERNALS
+#include <sys/msg.h>
+#define	_WANT_SYSVSEM_INTERNALS
 #include <sys/sem.h>
+#define	_WANT_SYSVSHM_INTERNALS
 #include <sys/shm.h>
-#include <sys/msg.h>
-#undef _KERNEL
 
 #include <assert.h>
 #include <err.h>

Modified: head/usr.bin/ipcs/ipcs.c
==============================================================================
--- head/usr.bin/ipcs/ipcs.c	Fri Feb 16 18:04:27 2018	(r329389)
+++ head/usr.bin/ipcs/ipcs.c	Fri Feb 16 18:07:04 2018	(r329390)
@@ -32,11 +32,12 @@ __FBSDID("$FreeBSD$");
 
 #include <sys/param.h>
 #include <sys/proc.h>
-#define _KERNEL
+#define	_WANT_SYSVMSG_INTERNALS
+#include <sys/msg.h>
+#define	_WANT_SYSVSEM_INTERNALS
 #include <sys/sem.h>
+#define	_WANT_SYSVSHM_INTERNALS
 #include <sys/shm.h>
-#include <sys/msg.h>
-#undef _KERNEL
 
 #include <err.h>
 #include <fcntl.h>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802161807.w1GI74Z1038034>