diff options
author | John Polstra <jdp@FreeBSD.org> | 2001-07-21 21:07:55 +0000 |
---|---|---|
committer | John Polstra <jdp@FreeBSD.org> | 2001-07-21 21:07:55 +0000 |
commit | 1d0e3b589f9356a333edd9e2602f85a630e4512b (patch) | |
tree | c8a716fd8c94105b7f5b88aa548db2b45d1e0469 /lang | |
parent | d19b94ed64fc703d737d5f6fefa100437129bb3f (diff) |
Make this port build properly on recent versions of 5.0-current,
from which struct mfs_args has been removed.
PR: ports/28093
Submitted by: Motoyuki Konno <motoyuki@freebsd.org>
Notes
Notes:
svn path=/head/; revision=45321
Diffstat (limited to 'lang')
-rw-r--r-- | lang/pm3-base/files/patch-l1 | 26 | ||||
-rw-r--r-- | lang/pm3-base/files/patch-l2 | 26 |
2 files changed, 52 insertions, 0 deletions
diff --git a/lang/pm3-base/files/patch-l1 b/lang/pm3-base/files/patch-l1 new file mode 100644 index 000000000000..8c4736032cfa --- /dev/null +++ b/lang/pm3-base/files/patch-l1 @@ -0,0 +1,26 @@ +--- libs/m3core/src/runtime/FreeBSD4/RTHeapDepC.c.old Thu Jun 1 02:54:33 2000 ++++ libs/m3core/src/runtime/FreeBSD4/RTHeapDepC.c Tue Jun 12 14:07:31 2001 +@@ -693,7 +693,9 @@ + void *data; + { int result; + struct ufs_args *u_data; ++#if __FreeBSD_version < 500019 + struct mfs_args *m_data; ++#endif + struct nfs_args *n_data; + + ENTER_CRITICAL; +@@ -704,11 +706,13 @@ + MAKE_READABLE(u_data); + MAKE_READABLE(u_data->fspec); + result = syscall(SYS_mount, type, dir, flags, data); ++#if __FreeBSD_version < 500019 + } else if (strcmp(type, "mfs") == 0) { + m_data = (struct mfs_args*) data; + MAKE_READABLE(m_data); + MAKE_READABLE(m_data->fspec); + result = syscall(SYS_mount, type, dir, flags, data); ++#endif + } else if (strcmp(type, "nfs") == 0) { + n_data = (struct nfs_args*) data; + MAKE_READABLE(n_data); diff --git a/lang/pm3-base/files/patch-l2 b/lang/pm3-base/files/patch-l2 new file mode 100644 index 000000000000..0e3d04034a22 --- /dev/null +++ b/lang/pm3-base/files/patch-l2 @@ -0,0 +1,26 @@ +--- boot-FreeBSD4/m3core/FreeBSD4/RTHeapDepC.c.orig Tue Jun 12 13:53:47 2001 ++++ boot-FreeBSD4/m3core/FreeBSD4/RTHeapDepC.c Tue Jun 12 14:08:44 2001 +@@ -693,7 +693,9 @@ + void *data; + { int result; + struct ufs_args *u_data; ++#if __FreeBSD_version < 500019 + struct mfs_args *m_data; ++#endif + struct nfs_args *n_data; + + ENTER_CRITICAL; +@@ -704,11 +706,13 @@ + MAKE_READABLE(u_data); + MAKE_READABLE(u_data->fspec); + result = syscall(SYS_mount, type, dir, flags, data); ++#if __FreeBSD_version < 500019 + } else if (strcmp(type, "mfs") == 0) { + m_data = (struct mfs_args*) data; + MAKE_READABLE(m_data); + MAKE_READABLE(m_data->fspec); + result = syscall(SYS_mount, type, dir, flags, data); ++#endif + } else if (strcmp(type, "nfs") == 0) { + n_data = (struct nfs_args*) data; + MAKE_READABLE(n_data); |