diff --git a/rtl/linux/ptypes.inc b/rtl/linux/ptypes.inc index 11d2cfb020..f9896f1544 100644 --- a/rtl/linux/ptypes.inc +++ b/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; diff --git a/rtl/unix/ipc.pp b/rtl/unix/ipc.pp index dd085e2d96..72828e181a 100644 --- a/rtl/unix/ipc.pp +++ b/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;