SEEK_CUR defined with error