diff options
Diffstat (limited to 'unotools')
-rw-r--r-- | unotools/source/ucbhelper/tempfile.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/unotools/source/ucbhelper/tempfile.cxx b/unotools/source/ucbhelper/tempfile.cxx index 177c29374406..c2534f671ff7 100644 --- a/unotools/source/ucbhelper/tempfile.cxx +++ b/unotools/source/ucbhelper/tempfile.cxx @@ -38,6 +38,8 @@ #include <sys/stat.h> #include <sys/types.h> #include <unistd.h> +#elif defined( WNT ) +#include <process.h> #endif using namespace osl; @@ -298,6 +300,10 @@ OUString CreateTempName_Impl( const OUString* pParent, bool bKeep, bool bDir = t static const OUString aPidString = OUString::number(pid); aEyeCatcher += aPidString; #endif +#elif defined(WNT) + static const int pid = _getpid(); + static const OUString aPidString = OUString::number(pid); + aEyeCatcher += aPidString; #endif UniqueTokens t; return lcl_createName(aEyeCatcher, t, nullptr, pParent, bDir, bKeep, false); |