1/* getpid.c - Replacement for WindowsCE
2   Copyright (C) 2010 Free Software Foundation, Inc.
3
4   This file is free software; as a special exception the author gives
5   unlimited permission to copy and/or distribute it, with or without
6   modifications, as long as this notice is preserved.
7
8   This file is distributed in the hope that it will be useful, but
9   WITHOUT ANY WARRANTY, to the extent permitted by law; without even
10   the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11   PURPOSE.  */
12
13#if HAVE_CONFIG_H
14#include <config.h>
15#endif
16
17#ifdef HAVE_W32CE_SYSTEM
18#include <windows.h>
19#include <sys/types.h>
20
21pid_t
22_gcry_getpid (void)
23{
24  return GetCurrentProcessId ();
25}
26
27#else
28# error No replacement function for getpid known
29#endif
30