Forum: Cfengine Help Subject: dirent and d_type support in verify_packages.c (AIX) Author: matter Link to topic: https://cfengine.com/forum/read.php?3,17121,17121#msg-17121
Greetings, Compiling the latest svn 981, there was a change in verify_packages.c that uses d_type support for the dirent structure. Unfortunately, AIX does not support that: 1531 | if(dirp->d_type == DT_REG || dirp->d_type == DT_LNK) ...................a.........b...............c.........d...... a - 1506-022 (S) "d_type" is not a member of "struct dirent". b - 1506-045 (S) Undeclared identifier DT_REG. c - 1506-022 (S) "d_type" is not a member of "struct dirent". d - 1506-045 (S) Undeclared identifier DT_LNK. struct dirent { __ulong64_t d_offset; /* real off after this entry */ ino_t d_ino; /* inode number of entry */ ushort_t d_reclen; /* length of this record */ ushort_t d_namlen; /* length of string in d_name */ char d_name[_D_NAME_MAX+1]; /* name must be no longer than this */ /* redefine w/#define when name decided */ }; _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine