Skip to content

Commit d02e0fb

Browse files
authored
Merge pull request lmbelo#515 from comdora/rpi5-fix
Rpi5 fix
2 parents da17611 + 372e8d0 commit d02e0fb

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

Source/MethodCallBack.pas

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,11 @@ function munmap(Addr: Pointer; Len: Integer): Integer; cdecl;
137137
PROT_WRITE =2;
138138
PROT_EXEC =4;
139139
MAP_PRIVATE =2;
140-
MAP_ANON=$1000;
140+
{$IFDEF MACOS}
141+
MAP_ANON=$1000;
142+
{$ELSE}
143+
MAP_ANON=$20;
144+
{$ENDIF MACOS}
141145
{$ENDIF}
142146
{$ENDIF}
143147

@@ -754,3 +758,5 @@ finalization
754758
FreeCallBacks;
755759

756760
end.
761+
762+

0 commit comments

Comments
 (0)