Index: /trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp
===================================================================
--- /trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp	(revision 37608)
+++ /trunk/src/VBox/Runtime/r3/solaris/coredumper-solaris.cpp	(revision 37609)
@@ -218,5 +218,5 @@
     if (fd >= 0)
     {
-        RTFILE hFile = fd;
+        RTFILE hFile = (RTFILE)(uintptr_t)fd;
         RTFileGetSize(hFile, &cb);
         RTFileClose(hFile);
@@ -367,5 +367,5 @@
     if (fd >= 0)
     {
-        RTFILE hFile = fd;
+        RTFILE hFile = (RTFILE)(uintptr_t)fd;
         uint64_t u64Size;
         RTFileGetSize(hFile, &u64Size);
@@ -415,5 +415,5 @@
     if (fd >= 0)
     {
-        RTFILE hFile = fd;
+        RTFILE hFile = (RTFILE)(uintptr_t)fd;
         size_t cbProcInfo = sizeof(psinfo_t);
         rc = ReadFileNoIntr(hFile, &pVBoxProc->ProcInfo, cbProcInfo);
@@ -450,5 +450,5 @@
     if (fd >= 0)
     {
-        RTFILE hFile = fd;
+        RTFILE hFile = (RTFILE)(uintptr_t)fd;
         size_t cbRead;
         size_t cbProcStatus = sizeof(pstatus_t);
@@ -550,5 +550,5 @@
     }
 
-    RTFILE hFile = fd;
+    RTFILE hFile = (RTFILE)(uintptr_t)fd;
     uint64_t u64Size;
     RTFileGetSize(hFile, &u64Size);
@@ -645,10 +645,10 @@
     }
 
-    RTFILE hFile = fd;
+    RTFILE hFile = (RTFILE)(uintptr_t)fd;
     RTStrPrintf(szPath, sizeof(szPath), "/proc/%d/as", (int)pVBoxProc->Process);
     fd = open(szPath, O_RDONLY);
     if (fd >= 0)
     {
-        pVBoxProc->hAs = fd;
+        pVBoxProc->hAs = (RTFILE)(uintptr_t)fd;
 
         /*
@@ -1185,5 +1185,5 @@
     if (fd >= 0)
     {
-        RTFILE hFile = fd;
+        RTFILE hFile = (RTFILE)(uintptr_t)fd;
         uint64_t u64Size;
         RTFileGetSize(hFile, &u64Size);
@@ -1819,5 +1819,5 @@
     }
 
-    pVBoxProc->hAs = fd;
+    pVBoxProc->hAs = (RTFILE)(uintptr_t)fd;
 
     /*
@@ -1832,5 +1832,5 @@
     }
 
-    pVBoxCore->hCoreFile = fd;
+    pVBoxCore->hCoreFile = (RTFILE)(uintptr_t)fd;
 
     pVBoxCore->offWrite = 0;
