Fix Windows-x-PPC build
authorTom Tromey <tromey@adacore.com>
Tue, 10 Nov 2020 16:15:31 +0000 (09:15 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 11 Nov 2020 13:38:43 +0000 (06:38 -0700)
commit0dd7428d895b35121db434dd0432d810ef6eecbe
tree7c178aab2e67ef746083267077c0ccc4ed03e5ca
parent550820e16d0a1f44ee63086b1a2d931e04839ffa
Fix Windows-x-PPC build

A recent BFD change caused a build failure for a Windows->PPC cross:

ld.exe: ../bfd/libbfd.a(coff-rs6000.o):coff-rs6000.c:(.text+0x4571): undefined reference to `getuid'
ld.exe: ../bfd/libbfd.a(coff-rs6000.o):coff-rs6000.c:(.text+0x457e): undefined reference to `getgid'

This patch fixes the problem by moving the replacement definitions of
getuid and getgid to system.h.

bfd/ChangeLog
2020-11-11  Tom Tromey  <tromey@adacore.com>

* archive.c (getuid, getgid): Move...
* sysdep.h (getuid, getgid): ...here.
bfd/ChangeLog
bfd/archive.c
bfd/sysdep.h