Sfoglia il codice sorgente

HPCC-14465 Fix __linux__ typo preventing memory mapped files working

Signed-off-by: Jake Smith <jake.smith@lexisnexis.com>
Jake Smith 9 anni fa
parent
commit
b6f4c84ef6
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      system/jlib/jfile.cpp

+ 1 - 1
system/jlib/jfile.cpp

@@ -6239,7 +6239,7 @@ public:
             DWORD err = GetLastError();
             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);
             // error checking TBD
 #else