diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-27 20:02:49 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2023-01-27 20:02:49 +0200 |
commit | 610dde15a88f12cc540424eb3eb3ed61f3876f74 (patch) | |
tree | 06ace457ebe3c0fa2e06924722b25eed25561494 /src/xz/private.h | |
parent | po4a/po4a.conf: Sort the language identifiers in alphabetical order. (diff) | |
download | xz-610dde15a88f12cc540424eb3eb3ed61f3876f74.tar.xz |
xz: Use clock_gettime() even if CLOCK_MONOTONIC isn't available.
mythread.h and thus liblzma already does it.
Diffstat (limited to 'src/xz/private.h')
-rw-r--r-- | src/xz/private.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/xz/private.h b/src/xz/private.h index a20dbc57..8a2db9ff 100644 --- a/src/xz/private.h +++ b/src/xz/private.h @@ -56,8 +56,7 @@ // polls the time and the SIGTSTP handling adds slight overhead to // that code. Most (all?) systems that have SIGTSTP also have SIGALRM // so this requirement won't exclude many systems. -#if defined(HAVE_CLOCK_GETTIME) && defined(HAVE_CLOCK_MONOTONIC) \ - && defined(SIGTSTP) && defined(SIGALRM) +#if defined(HAVE_CLOCK_GETTIME) && defined(SIGTSTP) && defined(SIGALRM) # define USE_SIGTSTP_HANDLER 1 #endif |