-
Notifications
You must be signed in to change notification settings - Fork 187
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sys/cpuset.h must be included after sys/param.h (FreeBSD) #99
Conversation
before sys/cpuset.h. This was fixed in May of 2020 (bac1f23) and undone in August of 2020 (9490b14). Here's a log showing the compile errors under FreeBSD 14.0-CURRENT: http://beefy18.nyi.freebsd.org/data/main-amd64-default/pf44e1c1de734_s63ca9ea4f3/logs/zeek-4.0.3.log Fix the order again. While we're here add a comment and disable clang-format for these includes. Thanks to @skand888 for analyzing the FreeBSD build failure which brought me here.
Thanks for your pull request. It looks like this may be your first contribution to a Google open source project (if not, look below for help). Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). 📝 Please visit https://cla.developers.google.com/ to sign. Once you've signed (or fixed any issues), please reply here with What to do if you already signed the CLAIndividual signers
Corporate signers
ℹ️ Googlers: Go here for more info. |
@googlebot I signed it! |
Thanks for fixing this permanently, clang-format reordering of headers is dangerous |
According to the sysctl(3) man page, sys/types.h must be included before sys/sysctl.h. This is another casualty of the August of 2020 (9490b14) autoformatter update. Here's the compile error (powerpc64*) from the commit that patched the FreeBSD security/zeek port: In file included from /wrkdirs/usr/ports/security/zeek/work/zeek-4.0.3/auxil/highwayhash/highwayhash/arch_specific.cc:27: /usr/include/sys/sysctl.h:1185:25: error: unknown type name 'u_int' int sysctl(const int *, u_int, void *, size_t *, const void *, size_t); As with google#99, add a comment and disable clang-format for these includes.
According to the cpuset(2) man page, sys/param.h must be included before sys/cpuset.h. This was fixed in May of 2020 (bac1f23) and undone in August of 2020 (9490b14).
Here's a log showing the compile errors under FreeBSD 14.0-CURRENT:
Fix the order again. While we're here add a comment and disable clang-format for these includes.
Thanks to @skand888 for analyzing the FreeBSD build failure which brought me here.