[please CC me on replies; I'm not subscribed] Hi,
Here's a fix for Debian bug #570662 (FTBFS: error: '__NR_perf_event_open' undeclared) Cheers, Serafeim Signed-off-by: Serafeim Zanikolas <s...@debian.org> --- perf.c | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/perf.c b/perf.c index 1ce35a2..6c05e4a 100644 --- a/perf.c +++ b/perf.c @@ -38,11 +38,18 @@ #include <fcntl.h> +/* __NR_perf_event_open in ia64 and alpha is defined elsewhere */ +#ifdef __ia64__ +#include <asm-generic/unistd.h> +#endif +#ifdef __alpha__ +#include <asm-generic/unistd.h> +#endif + #include "perf_event.h" #include "powertop.h" - /* some people have stale headers */ #ifndef __NR_perf_event_open #ifdef __i386__ -- 1.7.1 -- To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org