changeset 763:2a25ea5d94f7

Fix sense of HAS_PROC check
author Michael Pavone <pavone@retrodev.com>
date Sun, 28 Jun 2015 19:23:38 -0700
parents 206c449eaa81
children 13d3744b170e
files util.c
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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;
 		}