Ver código fonte

* some type declarations for sparc64-linux fixed

git-svn-id: trunk@36714 -
florian 8 anos atrás
pai
commit
13e76ccc01
2 arquivos alterados com 8 adições e 4 exclusões
  1. 3 3
      rtl/linux/pmutext.inc
  2. 5 1
      rtl/linux/ptypes.inc

+ 3 - 3
rtl/linux/pmutext.inc

@@ -19,7 +19,7 @@
   from the system unit interface; macro's have to be on at this point
   because they're use to propagate the MUTEXTYPENAME here }
 
-{$if defined(CPUMIPS) or defined(cpuaarch64)}
+{$if defined(CPUMIPS) or defined(cpuaarch64) or defined(cpusparc64)}
 {$define USE_PTHREAD_SIZEOF}
 
 {$if defined(cpuaarch64)}
@@ -30,7 +30,7 @@
   {$define __SIZEOF_PTHREAD_MUTEX_T := 24}
 {$endif CPU64}
 
-{$endif MIPS}
+{$endif defined(CPUMIPS) or defined(cpuaarch64) or defined(cpusparc64)}
 
   MUTEXTYPENAME = record
     case byte of
@@ -55,4 +55,4 @@
 {$ifdef __SIZEOF_PTHREAD_MUTEX_T}
 {$undef __SIZEOF_PTHREAD_MUTEX_T}
 {$endif __SIZEOF_PTHREAD_MUTEX_T}
-{$macro off}
+{$macro off}

+ 5 - 1
rtl/linux/ptypes.inc

@@ -30,7 +30,7 @@ and all three 32-bit systems returned completely identical types too
 introduction)
 }
 
-{$if defined(CPUMIPS) or defined(cpuaarch64)}
+{$if defined(CPUMIPS) or defined(cpuaarch64) or defined(cpusparc64)}
 {$define USE_PTHREAD_SIZEOF}
 {$if defined(cpuaarch64)}
 const
@@ -164,7 +164,11 @@ Type
 
   timeval     = record
                  tv_sec:time_t;
+{$ifdef CPUSPARC64}
+                 tv_usec:cint;
+{$else CPUSPARC64}
                  tv_usec:clong;
+{$endif CPUSPARC64}
                 end;
   ptimeval    = ^timeval;
   TTimeVal    = timeval;