Attached is a patch that fixes the time.h compilation under C++.
regards,
Nikos
>From 6bdd56fbd4ecad4b00d3bbd76dd343a52622a876 Mon Sep 17 00:00:00 2001
From: Nikos Mavrogiannopoulos <[email protected]>
Date: Sun, 10 Apr 2011 09:51:58 +0200
Subject: [PATCH] Fix compilation issue under C++ due to restrict C qualifier.
---
lib/time.in.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/lib/time.in.h b/lib/time.in.h
index 54e7f42..f086032 100644
--- a/lib/time.in.h
+++ b/lib/time.in.h
@@ -21,6 +21,10 @@
#endif
@PRAGMA_COLUMNS@
+#ifdef __cplusplus
+# define restrict
+#endif
+
/* Don't get in the way of glibc when it includes time.h merely to
declare a few standard symbols, rather than to declare all the
symbols. Also, Solaris 8 <time.h> eventually includes itself
--
1.7.2.3