diff options
author | Lauri Aarnio <Lauri.Aarnio@iki.fi> | 2008-11-21 12:43:23 +0200 |
---|---|---|
committer | Lauri Leukkunen <lle@rahina.org> | 2008-12-07 04:32:47 +0200 |
commit | 5198111f9604264ca9a8c6dc0f65ee710f4d6e94 (patch) | |
tree | 28b7b3befea9b458ce4569b03a436df2b58f272a /luaif | |
parent | 518bc83811a5283e00c4b79bb00eab29c72a3827 (diff) |
Fixed building of sb2 itself on Debian "etch"
(..and other older systems where AT_FDCWD macro is not available)
Diffstat (limited to 'luaif')
-rw-r--r-- | luaif/paths.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/luaif/paths.c b/luaif/paths.c index 8b76695..5e36632 100644 --- a/luaif/paths.c +++ b/luaif/paths.c @@ -1084,7 +1084,11 @@ char *scratchbox_path_at( { const char *dirfd_path; - if ((*path == '/') || (dirfd == AT_FDCWD)) { + if ((*path == '/') +#ifdef AT_FDCWD + || (dirfd == AT_FDCWD) +#endif + ) { /* same as scratchbox_path() */ return (scratchbox_path_internal( (sbox_binary_name ? sbox_binary_name : "UNKNOWN"), |