Comment 8 for bug 933045

Revision history for this message
Serge Hallyn (serge-hallyn) wrote :

serge@ubuntu:~/test$ cat fail.c
#include <stdio.h>

#include <linux/fcntl.h> /* for AT_EMPTY_PATH */
#include <fcntl.h>

int main()
{
        printf("hello, world\n");
}
serge@ubuntu:~/test$ make fail
cc fail.c -o fail
In file included from /usr/include/fcntl.h:34:0,
                 from fail.c:4:
/usr/include/x86_64-linux-gnu/bits/fcntl.h:168:8: error: redefinition of ‘struct flock’
/usr/include/asm-generic/fcntl.h:167:8: note: originally defined here
make: *** [fail] Error 1