#define _KERNEL on -current before including sys/msg.h so this will build

correctly.
This commit is contained in:
Steve Price 2000-05-28 04:10:15 +00:00
parent 6f281f85c4
commit 52a22139bf
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=28826
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,11 @@
--- sysdeps/freebsd/msg_limits.c.orig Sat May 27 14:19:11 2000
+++ sysdeps/freebsd/msg_limits.c Sat May 27 14:21:05 2000
@@ -46,7 +46,7 @@
/* #define KERNEL to get declaration of `struct msginfo'. */
-#if (defined __FreeBSD__) || (defined __bsdi__)
+#if (defined(__FreeBSD__) && __FreeBSD__ < 5) || (defined __bsdi__)
#define KERNEL 1
#else
#define _KERNEL 1

View File

@ -0,0 +1,11 @@
--- sysdeps/freebsd/msg_limits.c.orig Sat May 27 14:19:11 2000
+++ sysdeps/freebsd/msg_limits.c Sat May 27 14:21:05 2000
@@ -46,7 +46,7 @@
/* #define KERNEL to get declaration of `struct msginfo'. */
-#if (defined __FreeBSD__) || (defined __bsdi__)
+#if (defined(__FreeBSD__) && __FreeBSD__ < 5) || (defined __bsdi__)
#define KERNEL 1
#else
#define _KERNEL 1