summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--configure.ac2
-rw-r--r--lib/sitecing_util.cc3
2 files changed, 4 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0da7658..b9e9b56 100644
--- a/configure.ac
+++ b/configure.ac
@@ -54,7 +54,9 @@ AC_WITH_PCRE([
54]) 54])
55 55
56AC_CHECK_FUNC([dlopen],,[
56AC_CHECK_LIB([dl],[dlopen],,[ 57AC_CHECK_LIB([dl],[dlopen],,[
57 AC_MSG_ERROR([no dlopen library found]) 58 AC_MSG_ERROR([no dlopen library found])
58]) 59])
60])
59 61
60AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) 62AC_PATH_PROG([XSLTPROC],[xsltproc],[true])
diff --git a/lib/sitecing_util.cc b/lib/sitecing_util.cc
index 9b6c54e..5466b28 100644
--- a/lib/sitecing_util.cc
+++ b/lib/sitecing_util.cc
@@ -261,5 +261,6 @@ namespace sitecing {
261 261
262 void auto_chdir::pushdir(const string& td,bool ap) { 262 void auto_chdir::pushdir(const string& td,bool ap) {
263 char *tmp = get_current_dir_name(); 263 /* TODO: make use of fchdir(2) instead */
264 char *tmp = getcwd(0,0);
264 assert(tmp); 265 assert(tmp);
265 saved_pwd = tmp; 266 saved_pwd = tmp;