summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp
diff options
context:
space:
mode:
authorBradley T. Hughes <bradley.hughes@nokia.com>2009-06-02 10:02:14 (GMT)
committerBradley T. Hughes <bradley.hughes@nokia.com>2009-06-02 10:08:11 (GMT)
commitc46126179dfb12e01d5787fdd2278cfc0788d9fa (patch)
treebf9c2de2f7b5003e90470481076f9b8c035557f2 /doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp
parent785e08f74be80ac420b804dc3524558be2592b6b (diff)
downloadQt-c46126179dfb12e01d5787fdd2278cfc0788d9fa.zip
Qt-c46126179dfb12e01d5787fdd2278cfc0788d9fa.tar.gz
Qt-c46126179dfb12e01d5787fdd2278cfc0788d9fa.tar.bz2
Improve detection of monotonic timer support
Some older systems support monotonic timers, but not POSIX.1-2001. The sysconf() function is documented to return -1 if a feature is not supported, otherwise it returns a value that's dependent on it's argument. For POSIX.1-2001 compliant system, the value is 200112L, but on other systems it may just return 1, for example. Because of this, we check for the -1 return value (feature missing), instead of relying on a specific (positive) return value.
Diffstat (limited to 'doc/src/snippets/code/src_sql_kernel_qsqlquery.cpp')
0 files changed, 0 insertions, 0 deletions