File kdelibs-4.14.60-mingw-header-11-fix.patch of Package mingw32-kdelibs4
diff -ur kdelibs-4.14.60.orig/kdecore/CMakeLists.txt kdelibs-4.14.60/kdecore/CMakeLists.txt
--- kdelibs-4.14.60.orig/kdecore/CMakeLists.txt 2015-07-19 20:07:40.000000000 +0200
+++ kdelibs-4.14.60/kdecore/CMakeLists.txt 2023-11-11 13:20:55.772040070 +0100
@@ -402,6 +402,8 @@
endif()
else(NOT WIN32)
set(kdecore_LIB_SRCS ${kdecore_LIB_SRCS} util/kshareddatacache_win.cpp)
+ set_source_files_properties(services/lex.c PROPERTIES COMPILE_FLAGS "-DYY_NO_UNISTD_H")
+ set_source_files_properties(network/netsupp.cpp network/k3reverseresolver.cpp network/k3socketaddress.cpp PROPERTIES COMPILE_FLAGS "-DHAVE_STRUCT_ADDRINFO")
endif(NOT WIN32)
if (NOT Q_WS_X11 AND NOT Q_WS_QWS)