Hello, On Sun, Jun 2, 2013 at 8:01 PM, Martin Vogt <mvogt1@xxxxxxxxx> wrote: > I was trying to write a CMake check for i2c-dev.h. > This did not work, because "NULL" is used in i2c-dev.h, but NULL is not > defined, during the check. CMake can include more headers in the check: >CHECK_STRUCT_MEMBER(i2c_msg buf "string.h;${INC_I2C_DEV_H}/i2c-dev.h" HAS_I2C_MSG) With this string.h defines NULL, problem solved. regards, Martin -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html