#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
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"); ~/test$ make fail fcntl.h: 34:0,
from fail.c:4: x86_64- linux-gnu/ bits/fcntl. h:168:8: error: redefinition of ‘struct flock’ asm-generic/ fcntl.h: 167:8: note: originally defined here
{
}
serge@ubuntu:
cc fail.c -o fail
In file included from /usr/include/
/usr/include/
/usr/include/
make: *** [fail] Error 1