From 979900af9824932ed1d704323739958f46e08d81 Mon Sep 17 00:00:00 2001 From: Mike Frysinger <vapier@gentoo.org> Date: Wed, 29 Jul 2015 22:55:43 -0400 Subject: hppa: fix sysdep.h header setup The semi-recent SYSCALL_CANCEL inclusion broke hppa due to the sysdep.h headers not including the unix/sysdep.h headers. Rework the includes so we match the other ports: * hppa/sysdep.h: - Do not include sys/syscall.h as the unix sysdep.h headers do it. - Do not include config.h as libc-symbols.h does it, and it has no #ifdef multiple-include protection, and it breaks when some files do things like #undef __OPTIMIZE__. * sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h: - Drop the generic/sysdep.h as the unix sysdep.h headers include it. * sysdeps/unix/sysv/linux/hppa/sysdep.h: - Change to the unix & core hppa sysdep header stacks. - Undef a few defines that the core headers already set up for us. --- sysdeps/hppa/sysdep.h | 2 -- 1 file changed, 2 deletions(-) (limited to 'sysdeps/hppa') diff --git a/sysdeps/hppa/sysdep.h b/sysdeps/hppa/sysdep.h index 03fb2a42b3..366b83093f 100644 --- a/sysdeps/hppa/sysdep.h +++ b/sysdeps/hppa/sysdep.h @@ -18,8 +18,6 @@ <http://www.gnu.org/licenses/>. */ #include <sysdeps/generic/sysdep.h> -#include <sys/syscall.h> -#include "config.h" #undef ASM_LINE_SEP #define ASM_LINE_SEP ! -- cgit 1.4.1