glibc/glibc-nodate.patch
Dominique Leuenberger b55daa035b Accepting request 285813 from Base:System
- htm-tabort.patch: Fix TABORT encoding for little endian (forwarded request 285812 from Andreas_Schwab)

OBS-URL: https://build.opensuse.org/request/show/285813
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/glibc?expand=0&rev=186
2015-02-22 16:19:34 +00:00

33 lines
1001 B
Diff

Index: glibc-2.20.90/nscd/nscd_stat.c
===================================================================
--- glibc-2.20.90.orig/nscd/nscd_stat.c
+++ glibc-2.20.90/nscd/nscd_stat.c
@@ -36,8 +36,13 @@
#endif /* HAVE_SELINUX */
-/* We use this to make sure the receiver is the same. */
+/* We use this to make sure the receiver is the same. Capture mtime
+ of this file if possible. */
+#ifdef __TIMESTAMP__
+static const char compilation[21];
+#else
static const char compilation[21] = __DATE__ " " __TIME__;
+#endif
/* Statistic data for one database. */
struct dbstat
@@ -96,7 +101,12 @@ send_stats (int fd, struct database_dyn
memset (&data, 0, sizeof (data));
+#ifdef __TIMESTAMP__
+ /* Skip day of the week. */
+ memcpy (data.version, __TIMESTAMP__ + 4, sizeof (compilation));
+#else
memcpy (data.version, compilation, sizeof (compilation));
+#endif
data.debug_level = debug_level;
data.runtime = time (NULL) - start_time;
data.client_queued = client_queued;