Don't include sys/param.h
authorAlan Modra <amodra@gmail.com>
Tue, 1 Jul 2014 08:40:25 +0000 (18:10 +0930)
committerAlan Modra <amodra@gmail.com>
Tue, 1 Jul 2014 10:56:11 +0000 (20:26 +0930)
commit2dc0e7b400e46f105960c0dfcd431013f0013c6a
tree62ab7b1bfd9a429dd75ee0c068d3454c67de520e
parent810d4e754dad3e5431399de7b5bacb831b899320
Don't include sys/param.h

sys/param.h on recent versions of powerpc glibc ends up including
asm/elf.h via asm/sigcontex.h.  asm/elf.h defines R_PPC_* and R_PPC64_*
macros, which clash with our include/elf/ppc.h and include/elf/ppc64.h.
It turns out that no current source uses LD_PATHMAX, so there is no
need for limits.h or sys/param.h, except for one occurrence of UINT_MAX.
I don't have a quarrel with limits.h, but it seems unnecessary just
for UINT_MAX.

* sysdep.h: Don't include limits.h and sys/param.h.  Don't
include unistd.h twice.
(LD_PATHMAX): Don't define.
* ldlang.c (lang_common): Don't use UINT_MAX.
ld/ChangeLog
ld/ldlang.c
ld/sysdep.h