diff options
Diffstat (limited to 'sysdeps/mach/nanosleep.c')
-rw-r--r-- | sysdeps/mach/nanosleep.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/mach/nanosleep.c b/sysdeps/mach/nanosleep.c index 390d8a7cb3..7c810d3be9 100644 --- a/sysdeps/mach/nanosleep.c +++ b/sysdeps/mach/nanosleep.c @@ -1,5 +1,5 @@ /* nanosleep -- sleep for a period specified with a struct timespec - Copyright (C) 2002-2015 Free Software Foundation, Inc. + Copyright (C) 2002-2016 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -19,10 +19,11 @@ #include <errno.h> #include <mach.h> #include <sys/time.h> +#include <time.h> #include <unistd.h> int -__nanosleep (const struct timespec *requested_time, +__libc_nanosleep (const struct timespec *requested_time, struct timespec *remaining) { mach_port_t recv; @@ -64,5 +65,6 @@ __nanosleep (const struct timespec *requested_time, return 0; } +weak_alias(__libc_nanosleep, __nanosleep) libc_hidden_def (__nanosleep) -weak_alias (__nanosleep, nanosleep) +weak_alias (__libc_nanosleep, nanosleep) |