blob: 7355aa8b940b8bc48b69161e557e91fe61ba906f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
$NetBSD: patch-ai,v 1.3 2009/02/13 15:31:35 drochner Exp $
--- base/mkromfs.c.orig 2009-02-13 12:20:54.000000000 +0100
+++ base/mkromfs.c
@@ -467,7 +467,7 @@ main(int argc, char *argv[])
#endif
fprintf(out,"\n#include \"stdint_.h\"\n");
fprintf(out,"\n#include \"time_.h\"\n\n");
- fprintf(out," time_t gs_romfs_buildtime = %ld;\n\n", time(NULL));
+ fprintf(out," time_t gs_romfs_buildtime = %qd;\n\n", (int64_t)time(NULL));
/* process the remaining arguments (options interspersed with paths) */
for (; atarg < argc; atarg++) {
|