commit | 49d75678a56a419b178acd1db1ff4316bc8fc12a | [log] [tgz] |
---|---|---|
author | Paul Bakker <p.j.bakker@polarssl.org> | Wed Sep 26 15:22:07 2012 +0000 |
committer | Paul Bakker <p.j.bakker@polarssl.org> | Wed Sep 26 15:22:07 2012 +0000 |
tree | df07e4fded11e2b4a7be1f40b5f94eccb3c16f54 | |
parent | d14277d7de05b65227540ccc07ea85811dbd2597 [diff] [blame] |
- Support INTEGRITY OS
diff --git a/library/timing.c b/library/timing.c index 523dbe1..95bbc90 100644 --- a/library/timing.c +++ b/library/timing.c
@@ -243,6 +243,14 @@ return( delta ); } +#if defined(INTEGRITY) +void m_sleep( int milliseconds ) +{ + usleep( milliseconds * 1000 ); +} + +#else + static void sighandler( int signum ) { alarmed = 1; @@ -265,6 +273,7 @@ select( 0, NULL, NULL, NULL, &tv ); } +#endif /* INTEGRITY */ #endif