diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-31 19:39:03 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2012-03-31 19:39:03 +0200 |
commit | 05eee078353374ca917d0df6adeee3567aa16386 (patch) | |
tree | 4e90e701bc4703ace1e47944f71266c5f80ed4d2 /tests/dtls | |
parent | b62ea11f02a748d413edc1341e46aef45b8fb7e6 (diff) | |
download | gnutls-05eee078353374ca917d0df6adeee3567aa16386.tar.gz |
do not build test with timers when posix timers are not present.
Diffstat (limited to 'tests/dtls')
-rw-r--r-- | tests/dtls/dtls-stress.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/dtls/dtls-stress.c b/tests/dtls/dtls-stress.c index 8eab3097bf..6e85a80fbb 100644 --- a/tests/dtls/dtls-stress.c +++ b/tests/dtls/dtls-stress.c @@ -96,6 +96,8 @@ #include <time.h> #include <sys/wait.h> +#if _POSIX_TIMERS && (_POSIX_TIMERS - 200112L) >= 0 + // {{{ types typedef struct { @@ -1141,3 +1143,12 @@ int main(int argc, const char* argv[]) } // vim: foldmethod=marker + +#else /* NO POSIX TIMERS */ + +int main(int argc, const char* argv[]) +{ + exit(77); +} + +#endif |