diff options
author | 2015-09-12 13:13:34 +0000 | |
---|---|---|
committer | 2015-09-12 13:13:34 +0000 | |
commit | 34ddfe61f594fc6a262aeb1e48135036c27a002e (patch) | |
tree | 327850d8cf26b4d7c4411112bb3824de5b7ac26a /lib/libc/sys/timer_create.c | |
parent | Uncopy and unpaste dtls1_send_hello_request(). (diff) | |
download | wireguard-openbsd-34ddfe61f594fc6a262aeb1e48135036c27a002e.tar.xz wireguard-openbsd-34ddfe61f594fc6a262aeb1e48135036c27a002e.zip |
Make these timer_* stubs weak symbols
Provide declarations to reduce noise when using -Wmissing-prototypes
Diffstat (limited to 'lib/libc/sys/timer_create.c')
-rw-r--r-- | lib/libc/sys/timer_create.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/sys/timer_create.c b/lib/libc/sys/timer_create.c index e7abf4196e4..5add616918e 100644 --- a/lib/libc/sys/timer_create.c +++ b/lib/libc/sys/timer_create.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timer_create.c,v 1.6 2005/08/08 08:05:37 espie Exp $ */ +/* $OpenBSD: timer_create.c,v 1.7 2015/09/12 13:13:34 guenther Exp $ */ #include <signal.h> #include <time.h> @@ -6,7 +6,9 @@ struct sigevent; -/* ARGSUSED */ +int timer_create(clockid_t, struct sigevent *, timer_t *); +PROTO_DEPRECATED(timer_create); + int timer_create(clockid_t clock_id, struct sigevent *evp, timer_t *timerid) { |