mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 23:54:31 +02:00
Fixes to compile with icc
This commit is contained in:
parent
3ecd31879d
commit
8b31c677a2
2 changed files with 8 additions and 1 deletions
|
|
@ -220,8 +220,11 @@ set_ulimit(const BaseString & pair){
|
|||
if(!(list[1].trim() == "unlimited")){
|
||||
value = atoi(list[1].c_str());
|
||||
}
|
||||
|
||||
#if defined(__INTEL_COMPILER)
|
||||
struct rlimit64 rlp;
|
||||
#else
|
||||
struct rlimit rlp;
|
||||
#endif
|
||||
#define _RLIMIT_FIX(x) { res = getrlimit(x,&rlp); if(!res){ rlp.rlim_cur = value; res = setrlimit(x, &rlp); }}
|
||||
|
||||
if(list[0].trim() == "c"){
|
||||
|
|
|
|||
|
|
@ -799,7 +799,11 @@ AsyncFile::rmrfReq(Request * request, char * path, bool removePath){
|
|||
request->error = errno;
|
||||
return;
|
||||
}
|
||||
#if defined(__INTEL_COMPILER)
|
||||
struct dirent64 * dp;
|
||||
#else
|
||||
struct dirent * dp;
|
||||
#endif
|
||||
while ((dp = readdir(dirp)) != NULL){
|
||||
if ((strcmp(".", dp->d_name) != 0) && (strcmp("..", dp->d_name) != 0)) {
|
||||
BaseString::snprintf(path_add, (size_t)path_max_copy, "%s%s",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue