Closed LucaGuerra closed 3 years ago
Welcome @LucaGuerra! It looks like this is your first PR to falcosecurity/plugin-sdk-go 🎉
Hi @LucaGuerra. Thanks for your PR.
I'm waiting for a falcosecurity member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test
on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.
Once the patch is verified, the new status will be reflected by the ok-to-test
label.
I understand the commands that are listed here.
/ok-to-test
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: leogr, LucaGuerra
The full list of commands accepted by this bot can be found here.
The pull request process is described here
LGTM label has been added.
Signed-off-by: Luca Guerra luca@guerra.sh
What type of PR is this?
/kind bug
Any specific area of the project related to this PR?
What this PR does / why we need it:
When attempting to compile a plugin on MacOS the process will fail because of an error like
../../../../go/pkg/mod/github.com/falcosecurity/plugin-sdk-go@v0.0.0-20211105150954-f1111dfdc937/pkg/sdk/event.go:173:9: cannot use _Ctype_ulong(_Ciconst_UINT64_MAX) (type _Ctype_ulong) as type _Ctype_ulonglong in assignment
If you change that as the error suggests, you'll get the opposite error on Linux. This fixes the behavior by mapping thoseuint64_t
fields to theC.uint64_t
type.Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: