X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Fnntp%2Fmime%2FMime.cpp;h=0da5a049b3a982d837c08d937859a6c74cba4a84;hb=59a5414ec47a2932a7802fcd1d98c4d80166564f;hp=fa20dcc7784838f245d5d73ffe505d62f612c4fb;hpb=d8ccfe2b3944adf07d35534459cdda19d15217c8;p=fms.git diff --git a/src/nntp/mime/Mime.cpp b/src/nntp/mime/Mime.cpp index fa20dcc..0da5a04 100644 --- a/src/nntp/mime/Mime.cpp +++ b/src/nntp/mime/Mime.cpp @@ -12,6 +12,8 @@ #include "../../../include/nntp/mime/Mime.h" #include #include +#include +#include #ifndef _WIN32 #define stricmp strcasecmp @@ -362,7 +364,7 @@ void CMimeHeader::SetBoundary(const char* pszBoundary/*=NULL*/) char buf[80]; if (!pszBoundary) // generate a new boundary delimeter { - ::srand(((unsigned)::time(NULL)) ^ (unsigned)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 +477,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