Rollup merge of #29880 - dignati:fix-freebsd-libc, r=alexcrichton
Rollup merge of #29880 - dignati:fix-freebsd-libc, r=alexcrichton

With this change the build on FreeBSD is almost working again.

GBGamer/rust,graydon/rust,aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,aidancully/rust,GBGamer/rust,graydon/rust,GBGamer/rust,GBGamer/rust,aidancully/rust,graydon/rust,aidancully/rust,aidancully/rust,GBGamer/rust,graydon/rust,graydon/rust