summaryrefslogtreecommitdiffstats
path: root/sysif.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2018-05-04 06:17:15 -0700
committerKaz Kylheku <kaz@kylheku.com>2018-05-04 06:17:15 -0700
commit8ac435caf03bd91f4f73e62e57bcc9a2f31eaf4c (patch)
tree854a1cb903cedd928715ee2f169648c67a864856 /sysif.c
parent742a7bf9408b976c84ad947f9b39637f184482fa (diff)
downloadtxr-8ac435caf03bd91f4f73e62e57bcc9a2f31eaf4c.tar.gz
txr-8ac435caf03bd91f4f73e62e57bcc9a2f31eaf4c.tar.bz2
txr-8ac435caf03bd91f4f73e62e57bcc9a2f31eaf4c.zip
bugfix: correcly obtain self path on Solaris.
* configure: Add detection for getexecname. * sysif.c (getcwd_wrap): Change static function to external. * sysif.h (getcwd_wrap): Declared. * txr.c (get_self_path): New implementation for Solaris using getexecname, which requires us to prepend the current directory name if the result is a relative path.
Diffstat (limited to 'sysif.c')
-rw-r--r--sysif.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysif.c b/sysif.c
index 057560df..8111d4f5 100644
--- a/sysif.c
+++ b/sysif.c
@@ -335,7 +335,7 @@ static val chdir_wrap(val path)
return t;
}
-static val getcwd_wrap(void)
+val getcwd_wrap(void)
{
size_t guess = 256;