FreeBSD 10.2 Installation of Percona XtraDB Cluster

I have a fresh installation of FreeBSD 10.2 and I have been trying to install Percona XtraDB Cluster. When I try to compile it from source I keep getting this error:

/usr/local/src/Percona-XtraDB-Cluster-5.6.28-76.1/mysys/posix_timers.c:44:23: error: unknown type name ‘sigval_t’ timer_notify_function(sigval_t sigev_value) ^ /usr/local/src/Percona-XtraDB-Cluster-5.6.28-76.1/mysys/posix_timers.c:71:30: error: use of undeclared identifier ‘SYS_gettid’ thread_id= (pid_t) syscall(SYS_gettid); ^ 2 errors generated. *** Error code 1 Stop. make[2]: stopped in /usr/local/src/Percona-XtraDB-Cluster-5.6.28-76.1 *** Error code 1 Stop. make[1]: stopped in /usr/local/src/Percona-XtraDB-Cluster-5.6.28-76.1 *** Error code 1 Stop. make: stopped in /usr/local/src/Percona-XtraDB-Cluster-5.6.28-76.1
Would anyone know how to correct this issue?