diff --git a/src/stubser/stubser.c b/src/stubser/stubser.c index 1a3f37c..9a22fe8 100644 --- a/src/stubser/stubser.c +++ b/src/stubser/stubser.c @@ -234,6 +234,10 @@ STATIC int8_t createStub(char *aOutput, char *aNoSuffix, cfunction_list_t *aFunc fprintf(cfile, "/* @file %s"NEWLINES, gnu_basename(cFileName)); fprintf(cfile, " * @details"NEWLINES" * This is a stub for CUnit.\\n"NEWLINES); fprintf(cfile, " * - generated by stubser -"NEWLINES" */" NEWLINES NEWLINES); + fprintf(cfile, "#include "NEWLINES); + fprintf(cfile, "#include \"xtypes.h\""NEWLINES); + fprintf(cfile, "#include \"stub.h\""NEWLINES); + fprintf(cfile, "#include \"%s\""NEWLINES NEWLINES, gnu_basename(cHeaderName)); fprintf(cheader, "/* @file %s"NEWLINES, gnu_basename(cHeaderName)); fprintf(cheader, " * @details"NEWLINES" * This is a stub header.\\n"NEWLINES);