summaryrefslogtreecommitdiffstats
path: root/mkspecs/common/posix/qplatformdefs.h
diff options
context:
space:
mode:
Diffstat (limited to 'mkspecs/common/posix/qplatformdefs.h')
-rw-r--r--mkspecs/common/posix/qplatformdefs.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/mkspecs/common/posix/qplatformdefs.h b/mkspecs/common/posix/qplatformdefs.h
index 103ce89..60bc041 100644
--- a/mkspecs/common/posix/qplatformdefs.h
+++ b/mkspecs/common/posix/qplatformdefs.h
@@ -45,7 +45,9 @@
#include <signal.h>
#include <sys/types.h>
-#include <sys/socket.h>
+#ifndef QT_NO_SOCKET_H
+# include <sys/socket.h>
+#endif
#include <sys/stat.h>
#if defined(QT_USE_XOPEN_LFS_EXTENSIONS) && defined(QT_LARGEFILE_SUPPORT)