]> git.sesse.net Git - vlc/blobdiff - modules/access_filter/timeshift.c
Check-in modules/Makefile.am
[vlc] / modules / access_filter / timeshift.c
index 4e7c32306756b6b34640f4b4a63fe8c3401b6d0a..13511dc0e54b63e24b65acf72d668190122dd103 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <vlc/vlc.h>
 
-
 #include <errno.h>
 
 #include <vlc_access.h>
 
 #include <unistd.h>
 
+#ifdef WIN32
+#  include <direct.h>                                        /* _wgetcwd  */
+#endif
+
 /*****************************************************************************
  * Module descriptor
  *****************************************************************************/
@@ -556,7 +559,7 @@ static int Control( access_t *p_access, int i_query, va_list args )
  * GetTmpFilePath:
  *****************************************************************************/
 #ifdef WIN32
-#define getpid() GetCurrentProcessId()
+#define getpid() (int)GetCurrentProcessId()
 #endif
 static char *GetTmpFilePath( access_t *p_access )
 {