kafs: disable use of AFS syscall on macOS

Using syscall() directly on macOS has been deprecated since 10.12. The value of
AFS_SYSCALL on libkafs overlaps with SYS_poll, causing k_hasafs() to hang on
macOS 11.0. Remove the AFS_SYSCALL macro to disable the AFS syscall on macOS.
This commit is contained in:
Luke Howard
2020-07-05 11:42:39 +10:00
parent 99416eeead
commit ca51f9eae6

View File

@@ -104,10 +104,6 @@
#define AFS_SYSCALL 210
#endif
#ifdef __APPLE__ /* MacOS X */
#define AFS_SYSCALL 230
#endif
#ifdef SYS_afs_syscall
#define AFS_SYSCALL3 SYS_afs_syscall
#endif