hppa: fix sysdep.h header setup
commit979900af9824932ed1d704323739958f46e08d81
authorMike Frysinger <vapier@gentoo.org>
Thu, 30 Jul 2015 02:55:43 +0000 (29 22:55 -0400)
committerMike Frysinger <vapier@gentoo.org>
Thu, 30 Jul 2015 03:09:16 +0000 (29 23:09 -0400)
treed8d00c233136363456977b4db69624414d2c02b7
parenta822b0187a0b822554c45a815335f5955f5d4b82
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
sysdeps/unix/sysv/linux/hppa/sysdep-cancel.h
sysdeps/unix/sysv/linux/hppa/sysdep.h