2
0
Эх сурвалжийг харах

* patch to increase ino and time_t to 64-bit, mantis #30314

git-svn-id: trunk@34091 -
marco 9 жил өмнө
parent
commit
bc9bcdf1f8

+ 4 - 4
rtl/openbsd/ptypes.inc

@@ -33,7 +33,7 @@ type
     pGid     = ^gid_t;
     pGid     = ^gid_t;
     TIOCtlRequest = cuLong;
     TIOCtlRequest = cuLong;
 
 
-    ino_t    = cuint32;         { used for file serial numbers }
+    ino_t    = cuint64;         { used for file serial numbers }
     TIno     = ino_t;
     TIno     = ino_t;
     pIno     = ^ino_t;
     pIno     = ^ino_t;
 
 
@@ -73,11 +73,11 @@ type
     wchar_t  = cint32;
     wchar_t  = cint32;
     pwchar_t = ^wchar_t;
     pwchar_t = ^wchar_t;
 
 
-    clock_t  = culong;
+    clock_t  = cint64;
     TClock   = clock_t;
     TClock   = clock_t;
     pClock   = ^clock_t;
     pClock   = ^clock_t;
 
 
-    time_t   = clong;           { used for returning the time  }
+    time_t   = cint64;           { used for returning the time  }
     // TTime    = time_t;    // Not allowed in system unit, -> unixtype
     // TTime    = time_t;    // Not allowed in system unit, -> unixtype
     pTime    = ^time_t;
     pTime    = ^time_t;
     ptime_t  = ^time_t;
     ptime_t  = ^time_t;
@@ -87,7 +87,7 @@ type
     pSocklen = ^socklen_t;
     pSocklen = ^socklen_t;
 
 
     timeval = packed record
     timeval = packed record
-                tv_sec,
+                tv_sec : time_t;
                 tv_usec : clong;
                 tv_usec : clong;
                 end;
                 end;
     ptimeval= ^timeval;
     ptimeval= ^timeval;