diff --git a/include/crucible/fd.h b/include/crucible/fd.h index 6890417..d9062b2 100644 --- a/include/crucible/fd.h +++ b/include/crucible/fd.h @@ -57,7 +57,6 @@ namespace crucible { typedef ResourceHandle Fd; - static string __relative_path; void set_relative_path(string path); string relative_path(); diff --git a/lib/fd.cc b/lib/fd.cc index eee5103..4f78252 100644 --- a/lib/fd.cc +++ b/lib/fd.cc @@ -529,6 +529,8 @@ namespace crucible { THROW_ERROR(runtime_error, "readlink: maximum buffer size exceeded"); } + static string __relative_path; + string relative_path() {