win32 getpid

This commit is contained in:
Matej Sekoranja
2014-10-13 23:22:09 +02:00
parent fa6ed932e2
commit 7cc0ca9cb1
2 changed files with 7 additions and 1 deletions

View File

@@ -25,7 +25,7 @@
// module version
// TODO to be generated, etc.
#define EPICS_PVA_MAJOR_VERSION 4
#define EPICS_PVA_MINOR_VERSION 0
#define EPICS_PVA_MINOR_VERSION 1
#define EPICS_PVA_MAINTENANCE_VERSION 0
#define EPICS_PVA_DEVELOPMENT_FLAG 1

View File

@@ -8,6 +8,10 @@
#include <taskLib.h>
#endif
#ifdef _WIN32
#include <process.h>
#endif
#include <sstream>
#include <pv/responseHandlers.h>
@@ -546,6 +550,8 @@ public:
std::stringstream sspid;
#ifdef __vxworks
sspid << taskIdSelf();
#elif defined(_WIN32)
sspid << _getpid();
#else
sspid << getpid();
#endif