summaryrefslogtreecommitdiff
path: root/sysdeps/mach/nanosleep.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/mach/nanosleep.c')
-rw-r--r--sysdeps/mach/nanosleep.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sysdeps/mach/nanosleep.c b/sysdeps/mach/nanosleep.c
index 7efd952b78..1b6f828ba6 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-2013 Free Software Foundation, Inc.
+ Copyright (C) 2002-2014 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)