Browse Source

* fixed ipc for 32 bit systems

git-svn-id: trunk@7073 -
florian 18 years ago
parent
commit
572608a64f
2 changed files with 4 additions and 4 deletions
  1. 1 1
      rtl/linux/ptypes.inc
  2. 3 3
      rtl/unix/ipc.pp

+ 1 - 1
rtl/linux/ptypes.inc

@@ -58,7 +58,7 @@ Type
 {$ifdef cpu64}
     mode_t   = cint;         { used for file attributes     }
 {$else cpu64}
-    mode_t   = cuint32;         { used for file attributes     }
+    mode_t   = cushort;      { used for file attributes     }
 {$endif cpu64}
     TMode    = mode_t;
     pMode    = ^mode_t;

+ 3 - 3
rtl/unix/ipc.pp

@@ -22,7 +22,7 @@ Unit ipc;
 
 interface
 
-Uses BaseUnix;
+Uses BaseUnix,UnixType;
 
 { ----------------------------------------------------------------------
   General IPC stuff
@@ -135,8 +135,8 @@ Type
     shm_atime : time_t;
     shm_dtime : time_t;
     shm_ctime : time_t;
-    shm_cpid  : pid_t;
-    shm_lpid  : pid_t;
+    shm_cpid  : ipc_pid_t;
+    shm_lpid  : ipc_pid_t;
     shm_nattch : word;
     shm_npages : word;
     shm_pages  : Pointer;