mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-12-26 20:02:30 +01:00
23 lines
469 B
Diff
23 lines
469 B
Diff
--- a/lsyncd.c
|
|
+++ b/lsyncd.c
|
|
@@ -171,19 +171,7 @@
|
|
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
|
|
}
|
|
|
|
|