-.-
This commit is contained in:
parent
4181e93fbb
commit
baedcf23bb
2
cbt.h
2
cbt.h
|
@ -239,7 +239,7 @@ void cbt__init(int argc, char **argv, const char *source_file) {
|
|||
cbt_log(CBT_LOG_INFO, "Found C Compiler: %s", cbt_cc);
|
||||
|
||||
#ifdef __APPLE__
|
||||
CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) != 0);
|
||||
CBT_FAIL(proc_pidpath(getpid(), cbt_location, PATH_MAX) == -1);
|
||||
#else
|
||||
CBT_FAIL(readlink("/proc/self/exe", cbt_location, PATH_MAX) == -1);
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue