just include fcntl.h not sys/fcntl.h