# HG changeset patch # User Michael Pavone # Date 1435544618 25200 # Node ID 2a25ea5d94f76536c97611724219a6b57af7fb06 # Parent 206c449eaa81c22538d4180d5a108b7ebf33fca6 Fix sense of HAS_PROC check diff -r 206c449eaa81 -r 2a25ea5d94f7 util.c --- a/util.c Sun Jun 28 18:44:11 2015 -0700 +++ b/util.c Sun Jun 28 19:23:38 2015 -0700 @@ -139,7 +139,7 @@ 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 @@ break; } } -#ifndef HAS_PROC +#ifdef HAS_PROC } else { exe_dir = linktext; }