#include <vlc/vlc.h>
-
#include <errno.h>
#include <vlc_access.h>
#include <unistd.h>
+#ifdef WIN32
+# include <direct.h> /* _wgetcwd */
+#endif
+
/*****************************************************************************
* Module descriptor
*****************************************************************************/
* GetTmpFilePath:
*****************************************************************************/
#ifdef WIN32
-#define getpid() GetCurrentProcessId()
+#define getpid() (int)GetCurrentProcessId()
#endif
static char *GetTmpFilePath( access_t *p_access )
{