Check lseek return type against (off_t) -1.