Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/elftosb/dist/common Fix cygwin build.
details: https://anonhg.NetBSD.org/src/rev/dc178183141c
branches: trunk
changeset: 784979:dc178183141c
user: jmcneill <jmcneill%NetBSD.org@localhost>
date: Sat Feb 16 13:33:10 2013 +0000
description:
Fix cygwin build.
diffstat:
external/bsd/elftosb/dist/common/EncoreBootImage.cpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 2150838ad0d2 -r dc178183141c external/bsd/elftosb/dist/common/EncoreBootImage.cpp
--- a/external/bsd/elftosb/dist/common/EncoreBootImage.cpp Sat Feb 16 13:29:34 2013 +0000
+++ b/external/bsd/elftosb/dist/common/EncoreBootImage.cpp Sat Feb 16 13:33:10 2013 +0000
@@ -391,7 +391,7 @@
//! \bug The timestamp might be off an hour.
uint64_t EncoreBootImage::getTimestamp()
{
-#if WIN32
+#if defined(WIN32) || defined(__CYGWIN__)
struct tm epoch = { 0, 0, 0, 1, 0, 100, 0, 0 }; // 00:00 1-1-2000
#else
struct tm epoch = { 0, 0, 0, 1, 0, 100, 0, 0, 1, 0, NULL }; // 00:00 1-1-2000
Home |
Main Index |
Thread Index |
Old Index