This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH v2] gdb: btrace: fix build errors on older glibc builds
- From: Tom Tromey <tromey at redhat dot com>
- To: Mike Frysinger <vapier at gentoo dot org>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 17 Sep 2013 11:46:32 -0600
- Subject: Re: [PATCH v2] gdb: btrace: fix build errors on older glibc builds
- Authentication-results: sourceware.org; auth=none
- References: <1378190232-13873-1-git-send-email-vapier at gentoo dot org> <1379011230-410-1-git-send-email-vapier at gentoo dot org>
>>>>> "Mike" == Mike Frysinger <vapier@gentoo.org> writes:
Mike> It is possible to have a build of glibc where SYS_perf_event_open is not
Mike> defined (because when the glibc was compiled, the syscall did not exist),
Mike> but have newer kernel headers installed so that linux/perf_event.h is
Mike> available. In this setup, you get a build failure:
Mike> +/* Define to 1 if you have the <sys/syscall.h> header file. */
Mike> +#undef HAVE_SYS_SYSCALL_H 1
This line looks fishy.
Tom