diff options
Diffstat (limited to 'lib/libc/sys/nanosleep.c')
-rw-r--r-- | lib/libc/sys/nanosleep.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/libc/sys/nanosleep.c b/lib/libc/sys/nanosleep.c index 076ee33e44ea..23c07e3bf5fc 100644 --- a/lib/libc/sys/nanosleep.c +++ b/lib/libc/sys/nanosleep.c @@ -29,18 +29,13 @@ * EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#include <sys/cdefs.h> #include <sys/types.h> #include <time.h> #include "libc_private.h" -__weak_reference(__sys_nanosleep, __nanosleep); - #pragma weak nanosleep int nanosleep(const struct timespec *rqtp, struct timespec *rmtp) { - - return (((int (*)(const struct timespec *, struct timespec *)) - __libc_interposing[INTERPOS_nanosleep])(rqtp, rmtp)); + return (INTERPOS_SYS(nanosleep, rqtp, rmtp)); } |