Skip to content

Commit

Permalink
Merge pull request #203 from LongDirtyAnimAlf/master
Browse files Browse the repository at this point in the history
fix some issues on Linux ARM
  • Loading branch information
synopse committed May 27, 2019
2 parents 727381e + 6bb6613 commit 4769bbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions SynFPCSock.pas
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ procedure ResolveNameToIP(const Name: AnsiString; Family, SockProtocol, SockType

type
/// polling request data structure for poll()
TPollFD = packed record
TPollFD = {packed} record
/// file descriptor to poll
fd: integer;
/// types of events poller cares about
Expand Down Expand Up @@ -563,7 +563,7 @@ TEPollData = record
PEPollData = ^TEPollData;

/// epoll descriptor data structure
TEPollEvent = packed record
TEPollEvent = {$ifdef CPU64}packed{$endif} record
events: cardinal;
data: TEpollData;
end;
Expand Down
2 changes: 1 addition & 1 deletion SynFPCTypInfo.pas
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ function AlignTypeData(p: Pointer): Pointer;
function GetFPCAlignPtr(P: pointer): pointer;
begin
result := TypInfo.AlignTypeData(P+2+Length(PTypeInfo(P)^.Name));
Dec(PtrUInt(result),SizeOf(pointer));
Dec(PtrUInt(result),2*SizeOf(pointer));
end;
{$endif FPC_REQUIRES_PROPER_ALIGNMENT}

Expand Down

0 comments on commit 4769bbe

Please sign in to comment.