aboutsummaryrefslogtreecommitdiff
path: root/libbb/xreadlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xreadlink.c')
-rw-r--r--libbb/xreadlink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbb/xreadlink.c b/libbb/xreadlink.c
index f2faa6d7a..bc1d0e665 100644
--- a/libbb/xreadlink.c
+++ b/libbb/xreadlink.c
@@ -102,7 +102,8 @@ char* FAST_FUNC xmalloc_readlink_or_warn(const char *path)
102 102
103char* FAST_FUNC xmalloc_realpath(const char *path) 103char* FAST_FUNC xmalloc_realpath(const char *path)
104{ 104{
105#if defined(__GLIBC__) && !defined(__UCLIBC__) 105#if defined(__GLIBC__) || \
106 (defined(__UCLIBC__) && UCLIBC_VERSION >= KERNEL_VERSION(0, 9, 31))
106 /* glibc provides a non-standard extension */ 107 /* glibc provides a non-standard extension */
107 /* new: POSIX.1-2008 specifies this behavior as well */ 108 /* new: POSIX.1-2008 specifies this behavior as well */
108 return realpath(path, NULL); 109 return realpath(path, NULL);