I've found that I can work around the issue by reordering my includes,
like this:
```
// test.c
#include "netinet/in.h"
#include "sys/capability.h"
#include "linux/netfilter/nf_nat.h"
int main() {
// Program that needs to call capset() and htonl(), and also needs
// to do some netfilter things with NF_ACCEPT...
}
```
The program now compiles without any errors.
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1509894
Title:
Cannot include "netinet/in.h" with "linux/netfilter/nf_nat.h" and
"sys/capability.h"
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1509894/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs