about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAurelien Jarno <aurelien@aurel32.net>2012-02-17 17:46:56 +0100
committerAurelien Jarno <aurelien@aurel32.net>2012-02-17 17:46:56 +0100
commit8dee4833c5b6d3c2ad506b5c7fdc548504386f96 (patch)
treed23347d8950ff9b16c06c2898e4a211d2ce82239
parent9078ce930afda8bbcba6fe860a13ca62abcf2742 (diff)
downloadglibc-8dee4833c5b6d3c2ad506b5c7fdc548504386f96.tar.gz
glibc-8dee4833c5b6d3c2ad506b5c7fdc548504386f96.tar.xz
glibc-8dee4833c5b6d3c2ad506b5c7fdc548504386f96.zip
Include <time.h> in clock_settime.c.
-rw-r--r--ChangeLog6
-rw-r--r--NEWS6
-rw-r--r--sysdeps/unix/sysv/linux/clock_settime.c3
3 files changed, 11 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 0a80111a73..7ebc8b3274 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
+
+	[BZ #4026]
+	* sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
+	get clock_id definition.
+
 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
 
 	[BZ #4822]
diff --git a/NEWS b/NEWS
index 20ff90bdc0..ec0e938d89 100644
--- a/NEWS
+++ b/NEWS
@@ -9,9 +9,9 @@ Version 2.16
 
 * The following bugs are resolved with this release:
 
-  411, 4822, 9902, 10140, 11494, 13525, 13526, 13527, 13528, 13529, 13531,
-  13532, 13533, 13547, 13530, 13551, 13552, 13553, 13555, 13559, 13583,
-  13618
+  411, 4026 4822, 9902, 10140, 11494, 13525, 13526, 13527, 13528, 13529,
+  13531, 13532, 13533, 13547, 13530, 13551, 13552, 13553, 13555, 13559,
+  13583, 13618
 
 * ISO C11 support:
 
diff --git a/sysdeps/unix/sysv/linux/clock_settime.c b/sysdeps/unix/sysv/linux/clock_settime.c
index 5656db90f3..8cf3209803 100644
--- a/sysdeps/unix/sysv/linux/clock_settime.c
+++ b/sysdeps/unix/sysv/linux/clock_settime.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2003, 2004, 2006, 2010 Free Software Foundation, Inc.
+/* Copyright (C) 2003, 2004, 2006, 2010, 2012 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
@@ -17,6 +17,7 @@
 
 #include <errno.h>
 #include <sysdep.h>
+#include <time.h>
 
 #include "kernel-posix-cpu-timers.h"
 #include <kernel-features.h>