[gnome-builder/wip/libide: 33/237] log: make sure CLOCK_REALTIME is available.
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/libide: 33/237] log: make sure CLOCK_REALTIME is available.
- Date: Tue, 17 Feb 2015 21:32:11 +0000 (UTC)
commit eae7db8b90ed31a4a8c1039d8b55847aa68ae11a
Author: Christian Hergert <christian hergert me>
Date: Sat Feb 7 15:58:57 2015 -0800
log: make sure CLOCK_REALTIME is available.
src/log/gb-log.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/log/gb-log.c b/src/log/gb-log.c
index 7f0b150..e45a594 100644
--- a/src/log/gb-log.c
+++ b/src/log/gb-log.c
@@ -16,6 +16,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#define _GNU_SOURCE
+
#ifdef __linux__
# include <sys/utsname.h>
# include <sys/types.h>
@@ -26,6 +28,7 @@
#include <glib.h>
#include <string.h>
+#include <time.h>
#include <unistd.h>
#include "gb-log.h"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]