Skip to content

Instantly share code, notes, and snippets.

@tildeleb
Last active December 27, 2015 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tildeleb/7329005 to your computer and use it in GitHub Desktop.
Save tildeleb/7329005 to your computer and use it in GitHub Desktop.
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <dirent.h>
#include <sys/types.h>
#include <linux/inotify.h>
#include <sys/poll.h>
#include <sys/stat.h>
#include <time.h>
#include <pthread.h>
#include <errno.h>
#include <signal.h>
#include <fcntl.h>
int main( ) {
exit(0);
}
fc@uqa:~$ gcc test.c
In file included from /usr/include/fcntl.h:34:0,
from test.c:14:
/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
fc@uqa:~$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment