diff options
author | drh <> | 2022-11-30 13:44:31 +0000 |
---|---|---|
committer | drh <> | 2022-11-30 13:44:31 +0000 |
commit | a42281a312459d266d4a2189c43b80e83d2ab8e7 (patch) | |
tree | 405705991c9c387ed2f2dce32e591320e1e95ad0 /src/os_unix.c | |
parent | 8ae954557738b29ebaaa6b1eb954c4e9a703de36 (diff) | |
download | sqlite-a42281a312459d266d4a2189c43b80e83d2ab8e7.tar.gz sqlite-a42281a312459d266d4a2189c43b80e83d2ab8e7.zip |
Always use nanosleep() (instead of usleep() or sleep) if the
_POSIX_C_SOURCE macro says it should be available.
FossilOrigin-Name: 6620c57b9d3eae7226a412318b43393196df069b5b90aae0cf1743fdd2d102dd
Diffstat (limited to 'src/os_unix.c')
-rw-r--r-- | src/os_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/os_unix.c b/src/os_unix.c index c390b5188..ddb6f0c07 100644 --- a/src/os_unix.c +++ b/src/os_unix.c @@ -6676,7 +6676,7 @@ static int unixRandomness(sqlite3_vfs *NotUsed, int nBuf, char *zBuf){ ** than the argument. */ static int unixSleep(sqlite3_vfs *NotUsed, int microseconds){ -#if OS_VXWORKS +#if OS_VXWORKS || _POSIX_C_SOURCE >= 199309L struct timespec sp; sp.tv_sec = microseconds / 1000000; |