void-packages/srcpkgs/qt5/patches/qt-musl-socklen.patch

15 lines
367 B
Diff
Raw Normal View History

--- qtbase/mkspecs/linux-g++/qplatformdefs.h.orig
+++ qtbase/mkspecs/linux-g++/qplatformdefs.h
@@ -86,11 +86,7 @@
#undef QT_SOCKLEN_T
-#if defined(__GLIBC__) && (__GLIBC__ >= 2)
#define QT_SOCKLEN_T socklen_t
-#else
-#define QT_SOCKLEN_T int
-#endif
#if defined(_XOPEN_SOURCE) && (_XOPEN_SOURCE >= 500)
#define QT_SNPRINTF ::snprintf