aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@redhat.com>2011-09-06 11:12:11 +0200
committerAndreas Schwab <schwab@redhat.com>2011-09-06 11:20:51 +0200
commita8f84144c945f0c5df053661acc269fcff28b6ad (patch)
tree7d3bb3473539295beb3111dc19534e81d0b9bac4
parentef60624956e93df1da329a48570776ed963b1916 (diff)
downloadglibc-a8f84144c945f0c5df053661acc269fcff28b6ad.zip
glibc-a8f84144c945f0c5df053661acc269fcff28b6ad.tar.gz
glibc-a8f84144c945f0c5df053661acc269fcff28b6ad.tar.bz2
Fix missing declaration
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/gettimeofday.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 0176dcf..fd78d99 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-06 Andreas Schwab <schwab@redhat.com>
+
+ * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
+ <errno.h>.
+
2011-09-06 Ulrich Drepper <drepper@gmail.com>
* sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
diff --git a/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c b/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
index 56171bc..3aba81c 100644
--- a/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
+++ b/sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
@@ -38,6 +38,7 @@ __asm (".type __gettimeofday, %gnu_indirect_function");
#else
# include <sys/time.h>
# include <sysdep.h>
+# include <errno.h>
int
__gettimeofday (struct timeval *tv, struct timezone *tz)