blob: 66132f26e47733494d1db6f87a392bea00f95d16 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- lsyncd-2.0.7.orig/lsyncd.c
+++ lsyncd-2.0.7/lsyncd.c
@@ -166,17 +166,7 @@
char *
get_realpath(const char * rpath) {
// uses c-library to get the absolute path
-#ifdef __GLIBC__
- // in case of GLIBC the task is easy.
return realpath(rpath, NULL);
-#else
-# warning having to use old style realpath()
- // otherwise less so and requires PATH_MAX limit.
- char buf[PATH_MAX];
- char *asw = realpath(rpath, buf);
- if (!asw) return NULL;
- return s_strdup(asw);
-#endif
}
/*****************************************************************************
|