unable to include capability.h

Bill Crawford billcrawford1970 at gmail.com
Fri Jun 12 14:16:46 UTC 2009


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);




More information about the fedora-devel-list mailing list