0001-cmcurl-Include-unistd.patchcmcurl: Include unistd
Everyone gets this wrong. Most platforms are very lax with these includes, but we're not one of them.
0002-cmcurl-Use-struct-stat-and-include-sys-stat.h.patchcmcurl: Use struct stat and include sys/stat.h
For unknown reasons, curl_setup_once.h does not include sys/stat.h. This patch includes sys/stat.h.