Module Name:    src
Committed By:   jmcneill
Date:           Sat Feb 16 13:33:10 UTC 2013

Modified Files:
        src/external/bsd/elftosb/dist/common: EncoreBootImage.cpp

Log Message:
Fix cygwin build.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 \
    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.1 src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp:1.2
--- src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp:1.1	Thu Nov 15 19:49:13 2012
+++ src/external/bsd/elftosb/dist/common/EncoreBootImage.cpp	Sat Feb 16 13:33:10 2013
@@ -391,7 +391,7 @@ void EncoreBootImage::prepareImageHeader
 //! \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

Reply via email to