summaryrefslogtreecommitdiffstats
path: root/lib/libc/sys/timer_settime.c
diff options
context:
space:
mode:
authorguenther <guenther@openbsd.org>2015-09-12 13:13:34 +0000
committerguenther <guenther@openbsd.org>2015-09-12 13:13:34 +0000
commit34ddfe61f594fc6a262aeb1e48135036c27a002e (patch)
tree327850d8cf26b4d7c4411112bb3824de5b7ac26a /lib/libc/sys/timer_settime.c
parentUncopy and unpaste dtls1_send_hello_request(). (diff)
downloadwireguard-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_settime.c')
-rw-r--r--lib/libc/sys/timer_settime.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libc/sys/timer_settime.c b/lib/libc/sys/timer_settime.c
index f54a642dd6f..7a598fe9655 100644
--- a/lib/libc/sys/timer_settime.c
+++ b/lib/libc/sys/timer_settime.c
@@ -1,12 +1,12 @@
-/* $OpenBSD: timer_settime.c,v 1.6 2005/08/08 08:05:38 espie Exp $ */
+/* $OpenBSD: timer_settime.c,v 1.7 2015/09/12 13:13:34 guenther Exp $ */
-#include <signal.h>
#include <time.h>
#include <errno.h>
-struct itimerspec;
+int timer_settime(timer_t, int, const struct itimerspec *,
+ struct itimerspec *);
+PROTO_DEPRECATED(timer_settime);
-/* ARGSUSED */
int
timer_settime(timer_t timerid, int flags, const struct itimerspec *value,
struct itimerspec *ovalue)