summaryrefslogtreecommitdiffstats
path: root/src/tools/qfileinfo_unix.cpp
diff options
context:
space:
mode:
authorSlávek Banko <[email protected]>2019-06-12 12:50:07 +0200
committerSlávek Banko <[email protected]>2019-06-12 12:50:07 +0200
commit1aa221a2bc0a5c2f13a8d95af76a755b3c731251 (patch)
treea7a3b607c4f4b90de4c3f802c748a9fad2364632 /src/tools/qfileinfo_unix.cpp
parent0e749567664176465c05497d2145a24c42f76829 (diff)
downloadtqt3-1aa221a2bc0a5c2f13a8d95af76a755b3c731251.tar.gz
tqt3-1aa221a2bc0a5c2f13a8d95af76a755b3c731251.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 0bf143845..aed39e468 100644
--- a/src/tools/qfileinfo_unix.cpp
+++ b/src/tools/qfileinfo_unix.cpp
@@ -133,7 +133,7 @@ TQString TQFileInfo::readLink() const
if ( !isSymLink() )
return TQString();
#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 @@ TQString TQFileInfo::readLink() const
s[len] = '\0';
return TQFile::decodeName(s);
}
-#endif /* __GLIBC__ && !PATH_MAX */
+#endif /* !PATH_MAX */
#endif /* Q_OS_UNIX && !Q_OS_OS2EMX */
#if !defined(TQWS) && defined(Q_OS_MAC)
{