summaryrefslogtreecommitdiffstats
path: root/src/tools/qfileinfo_unix.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-06-12 15:41:30 +0200
committerSlávek Banko <[email protected]>2019-06-12 15:41:30 +0200
commitedad20d4f9ef3de0b91c163361803f12fc7212bc (patch)
tree3efb8cacc4ec9dc76ec4f3430b8bf8f3e5113dc1 /src/tools/qfileinfo_unix.cpp
parent934bc28242d329b8be70fbd5497421086083a028 (diff)
downloadqt3-edad20d4f9ef3de0b91c163361803f12fc7212bc.tar.gz
qt3-edad20d4f9ef3de0b91c163361803f12fc7212bc.zip
Change tests for glibc version.
It resolves building with libc libraries other than glibc - for example musl libc. Signed-off-by: Slávek Banko <[email protected]>
Diffstat (limited to 'src/tools/qfileinfo_unix.cpp')
-rw-r--r--src/tools/qfileinfo_unix.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tools/qfileinfo_unix.cpp b/src/tools/qfileinfo_unix.cpp
index cddb8f9..0ca0917 100644
--- a/src/tools/qfileinfo_unix.cpp
+++ b/src/tools/qfileinfo_unix.cpp
@@ -133,7 +133,7 @@ QString QFileInfo::readLink() const
if ( !isSymLink() )
return QString();
#if defined(Q_OS_UNIX) && !defined(Q_OS_OS2EMX)
-#if defined(__GLIBC__) && !defined(PATH_MAX)
+#if !defined(PATH_MAX)
int size = 256;
char *s = NULL, *s2;
@@ -165,7 +165,7 @@ QString QFileInfo::readLink() const
s[len] = '\0';
return QFile::decodeName(s);
}
-#endif /* __GLIBC__ && !PATH_MAX */
+#endif /* !PATH_MAX */
#endif /* Q_OS_UNIX && !Q_OS_OS2EMX */
#if !defined(QWS) && defined(Q_OS_MAC)
{