impl-path-hurd
authorLLVM Packaging Team <pkg-llvm-team@lists.alioth.debian.org>
Sun, 16 Dec 2018 12:07:54 +0000 (12:07 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Sun, 16 Dec 2018 12:07:54 +0000 (12:07 +0000)
===================================================================

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)) {