mirror of https://github.com/octoleo/lsyncd.git
oops, fixing linux
This commit is contained in:
parent
5ce47d47a3
commit
e252496a4e
2
lsyncd.c
2
lsyncd.c
|
@ -164,7 +164,7 @@ get_realpath(const char * rpath) {
|
||||||
// uses c-library to get the absolute path
|
// uses c-library to get the absolute path
|
||||||
#ifdef __GLIBC__
|
#ifdef __GLIBC__
|
||||||
// in case of GLIBC the task is easy.
|
// in case of GLIBC the task is easy.
|
||||||
return realpath(path, NULL);
|
return realpath(rpath, NULL);
|
||||||
#else
|
#else
|
||||||
# warning having to use old style realpath()
|
# warning having to use old style realpath()
|
||||||
// otherwise less so and requires PATH_MAX limit.
|
// otherwise less so and requires PATH_MAX limit.
|
||||||
|
|
Loading…
Reference in New Issue