mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 16:18:48 -05:00
use our define struct_stat to be compatible with largefile support.
This commit is contained in:
parent
2786ecaeef
commit
56a161e09a
@ -266,7 +266,7 @@ static int num_enabled_ciphers(void)
|
|||||||
*/
|
*/
|
||||||
static int is_file(const char *filename)
|
static int is_file(const char *filename)
|
||||||
{
|
{
|
||||||
struct stat st;
|
struct_stat st;
|
||||||
|
|
||||||
if(filename == NULL)
|
if(filename == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
@ -968,7 +968,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
|
|||||||
certDir = getenv("SSL_DIR"); /* Look in $SSL_DIR */
|
certDir = getenv("SSL_DIR"); /* Look in $SSL_DIR */
|
||||||
|
|
||||||
if(!certDir) {
|
if(!certDir) {
|
||||||
struct stat st;
|
struct_stat st;
|
||||||
|
|
||||||
if(stat(SSL_DIR, &st) == 0)
|
if(stat(SSL_DIR, &st) == 0)
|
||||||
if(S_ISDIR(st.st_mode)) {
|
if(S_ISDIR(st.st_mode)) {
|
||||||
@ -1104,7 +1104,7 @@ CURLcode Curl_nss_connect(struct connectdata *conn, int sockindex)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if(data->set.ssl.CApath) {
|
else if(data->set.ssl.CApath) {
|
||||||
struct stat st;
|
struct_stat st;
|
||||||
PRDir *dir;
|
PRDir *dir;
|
||||||
PRDirEntry *entry;
|
PRDirEntry *entry;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user