about summary refs log tree commit diff
path: root/sysdeps/posix/gettimeofday.c
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/posix/gettimeofday.c')
-rw-r--r--sysdeps/posix/gettimeofday.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/posix/gettimeofday.c b/sysdeps/posix/gettimeofday.c
index 3c079a5af2..9d4e07866d 100644
--- a/sysdeps/posix/gettimeofday.c
+++ b/sysdeps/posix/gettimeofday.c
@@ -37,7 +37,7 @@ __gettimeofday (tv, tz)
 {
   if (tv == NULL)
     {
-      errno = EINVAL;
+      __set_errno (EINVAL);
       return -1;
     }