diff --git a/compiler/cfileutl.pas b/compiler/cfileutl.pas index 445452fb58..43030ca90e 100644 --- a/compiler/cfileutl.pas +++ b/compiler/cfileutl.pas @@ -37,6 +37,9 @@ interface {$if defined(go32v2) or defined(watcom)} Dos, {$endif} +{$ifdef macos} + macutils, +{$endif macos} {$IFNDEF USE_FAKE_SYSUTILS} SysUtils, {$ELSE} diff --git a/compiler/fpcdefs.inc b/compiler/fpcdefs.inc index 810b364f9d..c7ca6c5a5e 100644 --- a/compiler/fpcdefs.inc +++ b/compiler/fpcdefs.inc @@ -274,10 +274,6 @@ {$define SUPPORT_SAFECALL} {$endif aarch64} -{$IFDEF MACOS} -{$DEFINE USE_FAKE_SYSUTILS} -{$ENDIF MACOS} - { Stabs is not officially supported on 64 bit targets by gdb, except on Mac OS X (but there we don't support it) } diff --git a/rtl/beos/errno.inc b/rtl/beos/errno.inc index b41796cbf1..8300ece913 100644 --- a/rtl/beos/errno.inc +++ b/rtl/beos/errno.inc @@ -386,10 +386,12 @@ const ESysESRCH = (B_POSIX_ERROR_BASE + 13); ESysETIMEDOUT = ord(B_TIMED_OUT); ESysEXDEV = ord(B_CROSS_DEVICE_LINK); + ESysEMSGSIZE = EMSGSIZE; + ESysEOPNOTSUPP = EOPNOTSUPP; + {ESysEBADMSG = realtime extension POSIX only } {ESysECANCELED = async. I/O extension POSIX only } - {ESysEMSGSIZE = realtime extension POSIX only } {ESysEINPROGRESS = async. I/O extension POSIX only } {***********************************************************************}