fix the compile error in FreeBSD

Signed-off-by: levin li <xingke.lwp@taobao.com>