diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/internal/cryptlib.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/include/internal/cryptlib.h b/include/internal/cryptlib.h index fb46657dba..ea42447e78 100644 --- a/include/internal/cryptlib.h +++ b/include/internal/cryptlib.h @@ -217,10 +217,18 @@ static ossl_inline void ossl_sleep(unsigned long millis) ts.tv_sec = (long int) (millis / 1000); ts.tv_nsec = (long int) (millis % 1000) * 1000000ul; nanosleep(&ts, NULL); -# elif defined(__TANDEM) && !defined(_REENTRANT) -# include <cextdecs.h(PROCESS_DELAY_)> +# elif defined(__TANDEM) +# if !defined(_REENTRANT) +# include <cextdecs.h(PROCESS_DELAY_)> /* HPNS does not support usleep for non threaded apps */ PROCESS_DELAY_(millis * 1000); +# elif defined(_SPT_MODEL_) +# include <spthread.h> +# include <spt_extensions.h> + usleep(millis * 1000); +# else + usleep(millis * 1000); +# endif # else usleep(millis * 1000); # endif |