Kyle McMartin wrote: ...
Someone else suggested including <sys/types.h> first, which should work around it. That's what GNU coreutils did... (a change in the include ordering broke it.)
I'm surprised the man page for cap_get_flag etc don't show an include of <sys/types.h> before <sys/capability.h> ... many system call man pages do e.g. --
NAME open, creat - open and possibly create a file or device SYNOPSIS #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> int open(const char *pathname, int flags); int open(const char *pathname, int flags, mode_t mode); int creat(const char *pathname, mode_t mode); -- fedora-devel-list mailing list fedora-devel-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/fedora-devel-list