diff options
Diffstat (limited to 'build')
-rw-r--r-- | build/has/timer-create.c | 9 | ||||
-rw-r--r-- | build/header.mk | 1 |
2 files changed, 10 insertions, 0 deletions
diff --git a/build/has/timer-create.c b/build/has/timer-create.c new file mode 100644 index 0000000..d5354c3 --- /dev/null +++ b/build/has/timer-create.c @@ -0,0 +1,9 @@ +// Copyright © Tavian Barnes <tavianator@tavianator.com> +// SPDX-License-Identifier: 0BSD + +#include <time.h> + +int main(void) { + timer_t timer; + return timer_create(CLOCK_REALTIME, NULL, &timer); +} diff --git a/build/header.mk b/build/header.mk index abec00f..88a8986 100644 --- a/build/header.mk +++ b/build/header.mk @@ -52,6 +52,7 @@ HEADERS := \ gen/has/strtofflags.h \ gen/has/tcgetwinsize.h \ gen/has/timegm.h \ + gen/has/timer-create.h \ gen/has/tm-gmtoff.h \ gen/has/uselocale.h |