summaryrefslogtreecommitdiff
path: root/src/libs/utils/tcpportsgatherer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/utils/tcpportsgatherer.cpp')
-rw-r--r--src/libs/utils/tcpportsgatherer.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libs/utils/tcpportsgatherer.cpp b/src/libs/utils/tcpportsgatherer.cpp
index 212d8866bd..c16d3f6781 100644
--- a/src/libs/utils/tcpportsgatherer.cpp
+++ b/src/libs/utils/tcpportsgatherer.cpp
@@ -48,7 +48,9 @@
#if defined(Q_OS_WIN) && defined(Q_CC_MINGW)
// Missing declarations for MinGW. This requires MinGW with gcc 4.6.
+#if __GNUC__ == 4 && __GNUC_MINOR__ < 7
typedef enum { } MIB_TCP_STATE;
+#endif
typedef struct _MIB_TCP6ROW {
MIB_TCP_STATE State;