summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-07-18 10:42:15 -0700
committerMichael Pavone <pavone@retrodev.com>2015-07-18 10:42:15 -0700
commitb8536aa7e5826fd6797c6a63faa5061b40208fbd (patch)
treec6add34677b0cfa9def39599acd21925c47949ad
parent95c8581b8681a83c628409d8394c8fe95ccdfc33 (diff)
parent631c3b800a023f7c7021ada70760dfeb0617d47b (diff)
Merge
-rw-r--r--util.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/util.c b/util.c
index 361d26b..2a59b08 100644
--- a/util.c
+++ b/util.c
@@ -150,7 +150,7 @@ char * get_exe_dir()
static char * exe_dir;
if (!exe_dir) {
char * cur;
-#ifndef HAS_PROC
+#ifdef HAS_PROC
char * linktext = readlink_alloc("/proc/self/exe");
if (!linktext) {
goto fallback;
@@ -180,7 +180,7 @@ fallback:
break;
}
}
-#ifndef HAS_PROC
+#ifdef HAS_PROC
} else {
exe_dir = linktext;
}