Make this build on SunOS.

This commit is contained in:
hans 2013-02-21 15:56:07 +00:00
parent 1bb892c6a4
commit f49c4a3f9c
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ void EncoreBootImage::prepareImageHeader(boot_image_header_t & header)
//! \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