Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Increase FD_SETSIZE from 256 to 1000 for QNX
The QNX C library FD_SETSIZE default (256) is too low given that
the operating system allows each process 1000 file descriptors by
default.

This change is being applied directly to 5.6 because it's not
applicable to 5.9 or dev.  Those versions of Qt don't use fd_set
because the event code is poll based rather than select based.

[ChangeLog][QNX] Increased FD_SETSIZE from 256 to 1000 so that more
files can be opened simultaneously.

Change-Id: I752460909cf86c27faf4188caf1aae3e0868f331
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
  • Loading branch information
jmcdonnell-blackberry committed Jul 6, 2017
1 parent 12823a0 commit e90d083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mkspecs/common/qcc-base.conf
Expand Up @@ -14,7 +14,7 @@ QMAKE_COMPILER = rim_qcc gcc # qcc is mostly gcc in disguise
QMAKE_CFLAGS_OPTIMIZE = -O2
QMAKE_CFLAGS_OPTIMIZE_FULL = -O3

QMAKE_CFLAGS += -Wno-psabi
QMAKE_CFLAGS += -Wno-psabi -DFD_SETSIZE=1000
QMAKE_CFLAGS_DEPS += -M
QMAKE_CFLAGS_WARN_ON += -Wall -W
QMAKE_CFLAGS_WARN_OFF += -w
Expand Down

0 comments on commit e90d083

Please sign in to comment.