[PATCH] BSD: macOS Support