Module Name: src
Committed By: hans
Date: Thu Feb 21 15:56:07 UTC 2013
Modified Files:
src/external/bsd/elftosb/dist/common: EncoreBootImage.cpp
Log Message:
Make this build on SunOS.
To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 \
src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp
diff -u src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp:1.2 src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp:1.3
--- src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp:1.2 Sat Feb 16 13:33:10 2013
+++ src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp Thu Feb 21 15:56:07 2013
@@ -391,7 +391,7 @@ void EncoreBootImage::prepareImageHeader
//! \bug The timestamp might be off an hour.
uint64_t EncoreBootImage::getTimestamp()
{
-#if defined(WIN32) || defined(__CYGWIN__)
+#if defined(WIN32) || defined(__CYGWIN__) || defined(__sun)
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