瀏覽代碼

HPCC-14465 Fix __linux__ typo preventing memory mapped files working

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 9 年之前
父節點
當前提交
b6f4c84ef6
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      system/jlib/jfile.cpp

+ 1 - 1
system/jlib/jfile.cpp

@@ -6239,7 +6239,7 @@ public:
             DWORD err = GetLastError();
             DWORD err = GetLastError();
             throw makeOsException(err,"CMemoryMappedFile::reinit");
             throw makeOsException(err,"CMemoryMappedFile::reinit");
         }
         }
-#elif defined (_linux__)
+#elif defined (__linux__)
         ptr = (byte *) mmap(NULL, mapsz, writeaccess?(PROT_READ|PROT_WRITE):PROT_READ, MAP_SHARED|MAP_NORESERVE, hfile, realofs);
         ptr = (byte *) mmap(NULL, mapsz, writeaccess?(PROT_READ|PROT_WRITE):PROT_READ, MAP_SHARED|MAP_NORESERVE, hfile, realofs);
             // error checking TBD
             // error checking TBD
 #else
 #else