author | Michael Krelin <hacker@klever.net> | 2005-02-13 22:04:58 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2005-02-13 22:04:58 (UTC) |
commit | 5f46976a264df39b847e3095b5babb400ab2a3e7 (patch) (unidiff) | |
tree | 059b3a6031dd2f375339a27a4de25af1686b7124 | |
parent | 9aa669090e978dce5e1f4d1ca9d23a4d92208518 (diff) | |
download | sitecing-5f46976a264df39b847e3095b5babb400ab2a3e7.zip sitecing-5f46976a264df39b847e3095b5babb400ab2a3e7.tar.gz sitecing-5f46976a264df39b847e3095b5babb400ab2a3e7.tar.bz2 |
portability improvements
-rw-r--r-- | configure.ac | 6 | ||||
-rw-r--r-- | lib/sitecing_util.cc | 3 |
2 files changed, 6 insertions, 3 deletions
diff --git a/configure.ac b/configure.ac index 0da7658..b9e9b56 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -53,8 +53,10 @@ AC_WITH_PCRE([ | |||
53 | AC_MSG_ERROR([no pcre library found]) | 53 | AC_MSG_ERROR([no pcre library found]) |
54 | ]) | 54 | ]) |
55 | 55 | ||
56 | AC_CHECK_LIB([dl],[dlopen],,[ | 56 | AC_CHECK_FUNC([dlopen],,[ |
57 | AC_MSG_ERROR([no dlopen library found]) | 57 | AC_CHECK_LIB([dl],[dlopen],,[ |
58 | AC_MSG_ERROR([no dlopen library found]) | ||
59 | ]) | ||
58 | ]) | 60 | ]) |
59 | 61 | ||
60 | AC_PATH_PROG([XSLTPROC],[xsltproc],[true]) | 62 | AC_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 | |||
@@ -260,7 +260,8 @@ namespace sitecing { | |||
260 | } | 260 | } |
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; |
266 | free(tmp); | 267 | free(tmp); |