]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libphobos: Fix visibility of std.process.searchPathFor
authorIain Buclaw <ibuclaw@gdcproject.org>
Tue, 4 May 2021 22:28:44 +0000 (00:28 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Mon, 10 May 2021 10:12:46 +0000 (12:12 +0200)
This symbol is used by std.file.thisExePath on OpenBSD.

libphobos/ChangeLog:

* src/std/process.d (searchPathFor): Change visibility to package.

(cherry picked from commit cecc437e952e35f8a7907553586605cbd0bba82a)

libphobos/src/std/process.d

index 9cbeca8e9a89fbbb40b05fc064dbceeb8fd37ebf..63ec49365b92598423a9dd25dd03e13f3be7c492 100644 (file)
@@ -887,7 +887,7 @@ version (Windows) @system unittest
 // Searches the PATH variable for the given executable file,
 // (checking that it is in fact executable).
 version (Posix)
-private string searchPathFor(in char[] executable)
+package(std) string searchPathFor(in char[] executable)
     @trusted //TODO: @safe nothrow
 {
     import std.algorithm.iteration : splitter;