1.clang ld not supports symvers 2.macos has not mutex_lock, use pthread_mutex_lock instead 3.macos not define SO_PEERCRED, use LOCAL_PEERCRED instead Signed-off-by: Liangbin Lian <jjm2473@gmail.com>