aboutsummaryrefslogtreecommitdiffstats
path: root/gl/mkdtemp.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/mkdtemp.c')
-rw-r--r--gl/mkdtemp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gl/mkdtemp.c b/gl/mkdtemp.c
index e3abb11fd..e8db73908 100644
--- a/gl/mkdtemp.c
+++ b/gl/mkdtemp.c
@@ -80,6 +80,11 @@
# include <io.h>
#endif
+#ifdef HAVE_W32CE_SYSTEM
+#include <windows.h>
+#define getpid() GetCurrentProcessId ()
+#endif
+
#if !_LIBC
# define __getpid getpid
# define __gettimeofday gettimeofday