From 9d763b29f93aa0dff56a94d9096489aacc6f750a Mon Sep 17 00:00:00 2001 From: John Polstra Date: Sun, 20 Apr 2003 19:34:29 +0000 Subject: Deal with the msgsnd() API change in FreeBSD 5.x. PR: ports/48509 Submitted by: Craig Rodrigues --- lang/pm3-base/files/patch-l2 | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'lang/pm3-base/files/patch-l2') diff --git a/lang/pm3-base/files/patch-l2 b/lang/pm3-base/files/patch-l2 index 19cb94256238..e18ec3ae81c2 100644 --- a/lang/pm3-base/files/patch-l2 +++ b/lang/pm3-base/files/patch-l2 @@ -1,5 +1,5 @@ ---- libs/m3core/src/runtime/FBSD_ALPHA/RTHeapDepC.c.orig Wed May 31 13:54:24 2000 -+++ libs/m3core/src/runtime/FBSD_ALPHA/RTHeapDepC.c Fri Nov 23 22:37:31 2001 +--- libs/m3core/src/runtime/FBSD_ALPHA/RTHeapDepC.c.orig Wed May 31 10:54:24 2000 ++++ libs/m3core/src/runtime/FBSD_ALPHA/RTHeapDepC.c Sun Apr 20 12:21:15 2003 @@ -98,7 +98,11 @@ #include #include @@ -36,3 +36,15 @@ } else if (strcmp(type, "nfs") == 0) { n_data = (struct nfs_args*) data; MAKE_READABLE(n_data); +@@ -805,7 +813,11 @@ + + int msgsnd(msqid, msgp, msgsz, msgflg) /* ok */ + int msqid; ++#if __FreeBSD_version >= 500100 ++const void *msgp; ++#else + void *msgp; ++#endif + size_t msgsz; + int msgflg; + { int result; -- cgit v1.2.3