Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Commit [r1007] Maximize Restore History

Fix redefinition of 'struct flock' error

in inotify_add/rm_watch testcases, mixing using glibc headers and kernel
headers causes including conflict:

make[1]: Entering directory
`/root/crackerjack/testcases/inotify_rm_watch/basic'
gcc -Wall -O2 -I/lib/modules/2.6.32-19.el6.i686/build/include -o test
basic.c ../../common.j.h/common_j_h.c
/lib/modules/2.6.32-19.el6.i686/build/include/asm-generic/fcntl.h:139:
error: redefinition of 'struct flock'
/lib/modules/2.6.32-19.el6.i686/build/include/linux/fcntl.h:16:1:
warning: "F_DUPFD_CLOEXEC" redefined
/usr/include/bits/fcntl.h:107:1: warning: this is the location of the
previous definition

Replace kernel headers to glibc headers.

Signed-off-by: Caspar Zhang <czhang@redhat.com>

casparant 2010-12-22

changed /trunk/crackerjack/testcases/inotify_add_watch/basic/basic.c
changed /trunk/crackerjack/testcases/inotify_rm_watch/basic/basic.c
/trunk/crackerjack/testcases/inotify_add_watch/basic/basic.c Diff Switch to side-by-side view
Loading...
/trunk/crackerjack/testcases/inotify_rm_watch/basic/basic.c Diff Switch to side-by-side view
Loading...