diff options
author | Michael Pavone <pavone@retrodev.com> | 2015-06-28 19:23:38 -0700 |
---|---|---|
committer | Michael Pavone <pavone@retrodev.com> | 2015-06-28 19:23:38 -0700 |
commit | 631c3b800a023f7c7021ada70760dfeb0617d47b (patch) | |
tree | 4761b8b3e1a118a3853dc19a11bc785e790ff78a /util.c | |
parent | 983959f838575b6af3e64be442a63647312fcc61 (diff) |
Fix sense of HAS_PROC check
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -139,7 +139,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; @@ -169,7 +169,7 @@ fallback: break; } } -#ifndef HAS_PROC +#ifdef HAS_PROC } else { exe_dir = linktext; } |