summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/android/qplatformdefs.h
diff options
context:
space:
mode:
authorAhmad Samir <a.samirh78@gmail.com>2024-02-02 01:28:04 +0200
committerAhmad Samir <a.samirh78@gmail.com>2024-02-06 00:57:17 +0200
commit366657b95113a06ac5432839ec73121cc8631a42 (patch)
tree1cac6abb540b943a4640058ef47665dc03d1b45a /mkspecs/common/android/qplatformdefs.h
parentbd07335554f0e2a48ea3fbda1258f3a9cdba17e7 (diff)
Remove QT_READDIR_R macro from qplatformdefs.h
readdir_r() has been deprecated since glibc-2.24; all usage of QT_READDIR_R in qtbase has been ported to readdir() since 2016 4b6784b49c6dcf0add9ec0cbb4ad97cd191c2aa3 (which explains in details the reasons behind the deprecation). What's left is the QT_READDIR_R, user code that still uses it, can switch to readdir_r() (which is not advisable). [ChangeLog][QtCore] Removed QT_READDIR_R macro; readdir_r() has been deprecated since glibc-2.24 and it's recommended to use readdir() instead. For more details see: https://man7.org/linux/man-pages/man3/readdir_r.3.html Change-Id: Icca2dca7e696533dcb983a82ba97a13baadcf015 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
Diffstat (limited to 'mkspecs/common/android/qplatformdefs.h')
-rw-r--r--mkspecs/common/android/qplatformdefs.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/mkspecs/common/android/qplatformdefs.h b/mkspecs/common/android/qplatformdefs.h
index 837a7952e4..41b7315cef 100644
--- a/mkspecs/common/android/qplatformdefs.h
+++ b/mkspecs/common/android/qplatformdefs.h
@@ -93,11 +93,9 @@
&& !defined(QT_NO_READDIR64)
#define QT_DIRENT struct dirent64
#define QT_READDIR ::readdir64
-#define QT_READDIR_R ::readdir64_r
#else
#define QT_DIRENT struct dirent
#define QT_READDIR ::readdir
-#define QT_READDIR_R ::readdir_r
#endif
#define QT_SOCKET_CONNECT ::connect