From ca51f9eae61cbca566f0cf7790ea4e855c202c73 Mon Sep 17 00:00:00 2001 From: Luke Howard Date: Sun, 5 Jul 2020 11:42:39 +1000 Subject: [PATCH] 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. --- lib/kafs/afssysdefs.h | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/kafs/afssysdefs.h b/lib/kafs/afssysdefs.h index 9143bbdf7..18734e36b 100644 --- a/lib/kafs/afssysdefs.h +++ b/lib/kafs/afssysdefs.h @@ -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