build: fix building under macos (#9211)
build: fix building under macos (#9211)

Signed-off-by: longfangsong <464c708b1b0e9893d7580567a5097d0bfb039508@icloud.com>
BusyJay/tikv,BusyJay/tikv,BusyJay/tikv,pingcap/tikv,BusyJay/tikv,c4pt0r/tikv,pingcap/tikv