src/pt2_diskop.c: In function 'findFirst': src/pt2_diskop.c:166:29: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'? searchRec->isDir = (fData->d_type == DT_DIR) ? true : false; ^~~~~~ d_name src/pt2_diskop.c:166:39: error: 'DT_DIR' undeclared (first use in this function); did you mean 'DIR'? searchRec->isDir = (fData->d_type == DT_DIR) ? true : false; ^~~~~~ DIR src/pt2_diskop.c:166:39: note: each undeclared identifier is reported only once for each function it appears in src/pt2_diskop.c:168:13: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~ d_name src/pt2_diskop.c:168:23: error: 'DT_UNKNOWN' undeclared (first use in this function); did you mean 'SDLK_UNKNOWN'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~~~~~ SDLK_UNKNOWN src/pt2_diskop.c:168:44: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~ d_name src/pt2_diskop.c:168:54: error: 'DT_LNK' undeclared (first use in this function); did you mean 'M_LN2'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~ M_LN2 src/pt2_diskop.c: In function 'findNext': src/pt2_diskop.c:243:29: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'? searchRec->isDir = (fData->d_type == DT_DIR) ? true : false; ^~~~~~ d_name src/pt2_diskop.c:243:39: error: 'DT_DIR' undeclared (first use in this function); did you mean 'DIR'? searchRec->isDir = (fData->d_type == DT_DIR) ? true : false; ^~~~~~ DIR src/pt2_diskop.c:245:13: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~ d_name src/pt2_diskop.c:245:23: error: 'DT_UNKNOWN' undeclared (first use in this function); did you mean 'SDLK_UNKNOWN'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~~~~~ SDLK_UNKNOWN src/pt2_diskop.c:245:44: error: 'struct dirent' has no member named 'd_type'; did you mean 'd_name'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~ d_name src/pt2_diskop.c:245:54: error: 'DT_LNK' undeclared (first use in this function); did you mean 'M_LN2'? if (fData->d_type == DT_UNKNOWN || fData->d_type == DT_LNK) ^~~~~~ M_LN2