浏览代码

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

git-svn-id: trunk@34091 -
marco 9 年之前
父节点
当前提交
bc9bcdf1f8
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      rtl/openbsd/ptypes.inc

+ 4 - 4
rtl/openbsd/ptypes.inc

@@ -33,7 +33,7 @@ type
     pGid     = ^gid_t;
     TIOCtlRequest = cuLong;
 
-    ino_t    = cuint32;         { used for file serial numbers }
+    ino_t    = cuint64;         { used for file serial numbers }
     TIno     = ino_t;
     pIno     = ^ino_t;
 
@@ -73,11 +73,11 @@ type
     wchar_t  = cint32;
     pwchar_t = ^wchar_t;
 
-    clock_t  = culong;
+    clock_t  = cint64;
     TClock   = 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
     pTime    = ^time_t;
     ptime_t  = ^time_t;
@@ -87,7 +87,7 @@ type
     pSocklen = ^socklen_t;
 
     timeval = packed record
-                tv_sec,
+                tv_sec : time_t;
                 tv_usec : clong;
                 end;
     ptimeval= ^timeval;