Use libiberty's lrealpath to avoid portability problems.
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 12 Mar 2019 16:31:48 +0000 (16:31 +0000)
committerIain Buclaw <ibuclaw@gcc.gnu.org>
Tue, 12 Mar 2019 16:31:48 +0000 (16:31 +0000)
commit8451f4a52e71cf93d20313fb067efb14894d1cc9
tree01d317730cd859deb3161aceee2732a527109219
parent1fe61adfcc44c4e6bf4b02f1d4043ba708b2953d
Use libiberty's lrealpath to avoid portability problems.

The dmd front-end function FileName::canonicalName could be called
during the semantic pass of import("file") expressions, so still
requires that realpath() be redefined.

Initial patch by Rainer Orth.

gcc/d/ChangeLog:

2019-03-12  Iain Buclaw  <ibuclaw@gdcproject.org>

PR d/87866
* d-system.h (realpath): Redefine as lrealpath.

From-SVN: r269619
gcc/d/ChangeLog
gcc/d/d-system.h