aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Unix/Path.inc
diff options
context:
space:
mode:
authorEric Christopher <echristo@apple.com>2012-08-06 20:52:18 +0000
committerEric Christopher <echristo@apple.com>2012-08-06 20:52:18 +0000
commit22738d00a30670d5227b47fe2b34d044cebd481c (patch)
treea9e31e9aa0be3f16ab53b67cbf51103467478870 /llvm/lib/Support/Unix/Path.inc
parentb9ddbd3daa318f38266ea8c4b0786073911615ed (diff)
downloadllvm-22738d00a30670d5227b47fe2b34d044cebd481c.zip
llvm-22738d00a30670d5227b47fe2b34d044cebd481c.tar.gz
llvm-22738d00a30670d5227b47fe2b34d044cebd481c.tar.bz2
Add support for the OpenBSD for Bitrig.
Patch by David Hill. llvm-svn: 161344
Diffstat (limited to 'llvm/lib/Support/Unix/Path.inc')
-rw-r--r--llvm/lib/Support/Unix/Path.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Support/Unix/Path.inc b/llvm/lib/Support/Unix/Path.inc
index b41390a..6bddbdf 100644
--- a/llvm/lib/Support/Unix/Path.inc
+++ b/llvm/lib/Support/Unix/Path.inc
@@ -260,7 +260,7 @@ Path::GetCurrentDirectory() {
return Path(pathname);
}
-#if defined(__FreeBSD__) || defined (__NetBSD__) || \
+#if defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__)
static int
test_dir(char buf[PATH_MAX], char ret[PATH_MAX],
@@ -329,7 +329,7 @@ Path Path::GetMainExecutable(const char *argv0, void *MainAddr) {
if (realpath(exe_path, link_path))
return Path(link_path);
}
-#elif defined(__FreeBSD__) || defined (__NetBSD__) || \
+#elif defined(__FreeBSD__) || defined (__NetBSD__) || defined(__Bitrig__) || \
defined(__OpenBSD__) || defined(__minix) || defined(__FreeBSD_kernel__)
char exe_path[PATH_MAX];