impl-path-hurd
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Tue, 9 Jul 2019 19:04:39 +0000 (20:04 +0100)
committerPeter Michael Green <plugwash@raspbian.org>
Tue, 9 Jul 2019 19:04:39 +0000 (20:04 +0100)
===================================================================

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

lib/Support/Unix/Path.inc

index efb7cba0bc596b27c3c5342ae8c8a39be83f4658..51918cb508c6321562fbcc5ecf627dc6bde4725e 100644 (file)
@@ -175,7 +175,7 @@ std::string getMainExecutable(const char *argv0, void *MainAddr) {
 
   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)) {