New comment by eiro on mblaze repository https://github.com/leahneukirchen/mblaze/pull/172#issuecomment-596178670 Comment: i would had introduced something like #if defined(DT_REG) && defined(DT_LNK) && defined(DT_UNKNOWN) #define IS_LEGIT_DT(t) (t != DT_REG && t != DT_LNK && t != DT_UNKNOWN) #else #define IS_LEGIT_DT(t) (1) #endif in a file like config.h and then add some other generic macros and configuration like #if defined(__linux__) #define __GNU_SOURCE__ #endif #define uc ... #define lc ... regards marc