Fix build on 11.X after r273707 (__FreeBSD_version: 1100041).
Approved by: bjk (maintainer)
This commit is contained in:
parent
8718c270c6
commit
50e617d820
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=372506
3 changed files with 42 additions and 0 deletions
14
net/openafs/files/patch-src-afs-FBSD-osi_vfsops.c
Normal file
14
net/openafs/files/patch-src-afs-FBSD-osi_vfsops.c
Normal file
|
@ -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;
|
14
net/openafs/files/patch-src-config-param.amd64_fbsd_110.h
Normal file
14
net/openafs/files/patch-src-config-param.amd64_fbsd_110.h
Normal file
|
@ -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 */
|
14
net/openafs/files/patch-src-config-param.i386_fbsd_110.h
Normal file
14
net/openafs/files/patch-src-config-param.i386_fbsd_110.h
Normal file
|
@ -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 */
|
Loading…
Reference in a new issue