Re: [ERROR] perf build failure on current tip:perf/core

From: Ingo Molnar
Date: Sun Jan 08 2012 - 10:00:21 EST



* Namhyung Kim <namhyung@xxxxxxxxx> wrote:

> Putting the debug lines told me __USE_UNIX98 is not defined
> for the file. It's because ctype.h gets included without
> _GNU_SOURCE and then it includes feature.h AFAICS.
> Encompassing ctype.h with #define/#undef _GNU_SOURCE or just
> adding __USE_UNIX98 before unistd.h makes the file compiled,
> but it seems like an improper solution. What is the right way?

Could you just remove the ctype.h include? AFAICS it's not
needed in that file.

Thanks,

Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/