X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnntp%2Fmime%2FMime.cpp;h=d9255904a070877c286fcc6d84b2db3bbad45110;hb=ee580d19b7920904587e18d72a3465d52eab6204;hp=0bf826d06329d6e94d94940eff7105b131db6a31;hpb=b9c3763a932cebaa015a27fe111017f6f34dfbaa;p=fms.git diff --git a/src/nntp/mime/Mime.cpp b/src/nntp/mime/Mime.cpp index 0bf826d..d925590 100644 --- a/src/nntp/mime/Mime.cpp +++ b/src/nntp/mime/Mime.cpp @@ -362,7 +362,7 @@ void CMimeHeader::SetBoundary(const char* pszBoundary/*=NULL*/) char buf[80]; if (!pszBoundary) // generate a new boundary delimeter { - ::srand(((unsigned)::time(NULL)) ^ reinterpret_cast(this)); + ::srand(((unsigned)::time(NULL)));// ^ reinterpret_cast(this)); ::sprintf(buf, "__=_Part_Boundary_%03d_%06d.%06d", ++s_nPartNumber, rand(), rand()); if (s_nPartNumber >= 9) s_nPartNumber = 0; @@ -475,7 +475,11 @@ list::iterator CMimeHeader::FindField(const char* pszFieldName) #include #else #if !defined(__APPLE__) && !defined(__DARWIN__) - #include + #if !defined(__FreeBSD__) && !defined(solaris) && !defined(__sun) + #include + #else + #include + #endif #endif #endif