X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Ftime%2Fgettimeofday.c;h=2436e490410707a69d20ea820b5f4294cc1420ea;hb=cc44d9f2017855ad29c5c1301e8368158a4c2fa7;hp=2b8a287d36bd25fe5949ac23a09fbfb8526ec441;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/time/gettimeofday.c b/src/time/gettimeofday.c index 2b8a287d..2436e490 100644 --- a/src/time/gettimeofday.c +++ b/src/time/gettimeofday.c @@ -1,9 +1,8 @@ -#define SYSCALL_RETURN_ERRNO #include #include "syscall.h" int gettimeofday(struct timeval *tv, void *tz) { - syscall2(__NR_gettimeofday, (long)tv, 0); + __syscall(SYS_gettimeofday, tv, 0); return 0; }