X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;ds=sidebyside;f=src%2Fnntp%2Fmime%2FMime.cpp;h=723ae14f5f77f4b508157364a4477c614214d3f1;hb=56f67ecca96efc7b72d03c95c8c42cfb66e31468;hp=fcadcd5d675d682ac80a203663342750b1466afe;hpb=868c533e84b3c81b6604b45b84efa32073aa20b4;p=fms.git diff --git a/src/nntp/mime/Mime.cpp b/src/nntp/mime/Mime.cpp index fcadcd5..723ae14 100644 --- a/src/nntp/mime/Mime.cpp +++ b/src/nntp/mime/Mime.cpp @@ -12,6 +12,7 @@ #include "../../../include/nntp/mime/Mime.h" #include #include +#include #ifndef _WIN32 #define stricmp strcasecmp @@ -362,7 +363,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; @@ -474,7 +475,13 @@ list::iterator CMimeHeader::FindField(const char* pszFieldName) #ifdef _WIN32 #include #else - #include + #if !defined(__APPLE__) && !defined(__DARWIN__) + #if !defined(__FreeBSD__) && !defined(solaris) && !defined(__sun) + #include + #else + #include + #endif + #endif #endif #ifndef O_BINARY