diff options
author | hrs <hrs@FreeBSD.org> | 2014-11-13 07:02:45 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2014-11-13 07:02:45 +0800 |
commit | dea19ecc1a8ba2b44687210b0ec403265404c34a (patch) | |
tree | 46a96889114166c5dccd28186e500ab05165d299 /net/openafs | |
parent | 0360eb4f9913f84fcfe10b1e059e2ca92f2b7bba (diff) | |
download | freebsd-ports-gnome-dea19ecc1a8ba2b44687210b0ec403265404c34a.tar.gz freebsd-ports-gnome-dea19ecc1a8ba2b44687210b0ec403265404c34a.tar.zst freebsd-ports-gnome-dea19ecc1a8ba2b44687210b0ec403265404c34a.zip |
Fix build on 11.X after r273707 (__FreeBSD_version: 1100041).
Approved by: bjk (maintainer)
Diffstat (limited to 'net/openafs')
3 files changed, 42 insertions, 0 deletions
diff --git a/net/openafs/files/patch-src-afs-FBSD-osi_vfsops.c b/net/openafs/files/patch-src-afs-FBSD-osi_vfsops.c new file mode 100644 index 000000000000..a20d69429418 --- /dev/null +++ b/net/openafs/files/patch-src-afs-FBSD-osi_vfsops.c @@ -0,0 +1,14 @@ +--- src/afs/FBSD/osi_vfsops.c.orig 2014-11-08 11:45:02.000000000 +0900 ++++ src/afs/FBSD/osi_vfsops.c 2014-11-08 12:01:34.000000000 +0900 +@@ -49,7 +49,11 @@ + int code; + int offset = AFS_SYSCALL; + #if defined(AFS_FBSD90_ENV) || defined(AFS_FBSD82_ENV) ++# if defined(FBSD_SYSCALL_REGISTER_FOUR_ARGS) ++ code = syscall_register(&offset, &afs_sysent, &old_sysent, 0); ++# else + code = syscall_register(&offset, &afs_sysent, &old_sysent); ++# endif + if (code) { + printf("AFS_SYSCALL in use, error %i. aborting\n", code); + return code; diff --git a/net/openafs/files/patch-src-config-param.amd64_fbsd_110.h b/net/openafs/files/patch-src-config-param.amd64_fbsd_110.h new file mode 100644 index 000000000000..45a25aa060d1 --- /dev/null +++ b/net/openafs/files/patch-src-config-param.amd64_fbsd_110.h @@ -0,0 +1,14 @@ +--- src/config/param.amd64_fbsd_110.h.orig 2014-10-09 18:21:13.000000000 +0900 ++++ src/config/param.amd64_fbsd_110.h 2014-11-08 12:19:21.000000000 +0900 +@@ -144,6 +144,11 @@ + #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */ + #endif /* _KERNEL */ + ++/* r273707 added a flags argument to syscall_register() */ ++#if __FreeBSD_version >= 1100041 ++#define FBSD_SYSCALL_REGISTER_FOUR_ARGS ++#endif ++ + #else /* !defined(UKERNEL) */ + + /* This section for user space compiles only */ diff --git a/net/openafs/files/patch-src-config-param.i386_fbsd_110.h b/net/openafs/files/patch-src-config-param.i386_fbsd_110.h new file mode 100644 index 000000000000..cf042afed677 --- /dev/null +++ b/net/openafs/files/patch-src-config-param.i386_fbsd_110.h @@ -0,0 +1,14 @@ +--- src/config/param.i386_fbsd_110.h.orig 2014-10-09 18:21:13.000000000 +0900 ++++ src/config/param.i386_fbsd_110.h 2014-11-08 12:19:35.000000000 +0900 +@@ -143,6 +143,11 @@ + #endif /* ! ASSEMBLER & ! __LANGUAGE_ASSEMBLY__ */ + #endif /* _KERNEL */ + ++/* r273707 added a flags argument to syscall_register() */ ++#if __FreeBSD_version >= 1100041 ++#define FBSD_SYSCALL_REGISTER_FOUR_ARGS ++#endif ++ + #else /* !defined(UKERNEL) */ + + /* This section for user space compiles only */ |