impl-path-hurd
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 31 Mar 2020 19:11:56 +0000 (20:11 +0100)
committerSylvestre Ledru <sylvestre@debian.org>
Tue, 31 Mar 2020 19:11:56 +0000 (20:11 +0100)
===================================================================

Gbp-Pq: Topic hurd
Gbp-Pq: Name impl-path-hurd.diff

llvm/lib/Support/Unix/Path.inc

index 27c8a1bc9b745b4d823031127b5ed0c0f47cb6be..e83fafb87f2327082acc0d07eaa177e0fd21ebc1 100644 (file)
@@ -203,7 +203,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
   // If we don't have procfs mounted, fall back to argv[0]
   if (getprogpath(exe_path, argv0) != NULL)
     return exe_path;
-#elif defined(__linux__) || defined(__CYGWIN__)
+#elif defined(__linux__) || defined(__CYGWIN__) || defined(__GNU__)
   char exe_path[MAXPATHLEN];
   StringRef aPath("/proc/self/exe");
   if (sys::fs::exists(aPath)) {