summaryrefslogtreecommitdiff
path: root/ndb
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2005-05-23 18:53:53 +0200
committerunknown <msvensson@neptunus.(none)>2005-05-23 18:53:53 +0200
commit3ca4caef3fa58fd48c1f14777e08f617e434a049 (patch)
treea46edf2f906497734b35b2d809b1b398871a41b7 /ndb
parent9b8e02741ab73838ffa9dd26dd94a560d9d3d667 (diff)
downloadmariadb-git-3ca4caef3fa58fd48c1f14777e08f617e434a049.tar.gz
Build fixes for icc, compile _without_ "-no-gnu"
include/my_global.h: icc does not define __ICC when emulating gcc. Use __INTEL_COMPILER to check for icc. ndb/src/cw/cpcd/Process.cpp: Remove rlimit64 ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp: Remove dirent64
Diffstat (limited to 'ndb')
-rw-r--r--ndb/src/cw/cpcd/Process.cpp5
-rw-r--r--ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp4
2 files changed, 1 insertions, 8 deletions
diff --git a/ndb/src/cw/cpcd/Process.cpp b/ndb/src/cw/cpcd/Process.cpp
index cfffec7d0ce..431c96e3320 100644
--- a/ndb/src/cw/cpcd/Process.cpp
+++ b/ndb/src/cw/cpcd/Process.cpp
@@ -223,11 +223,8 @@ 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"){
diff --git a/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp b/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
index b3fc6e04d6c..f76440a462a 100644
--- a/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
+++ b/ndb/src/kernel/blocks/ndbfs/AsyncFile.cpp
@@ -799,11 +799,7 @@ 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",