Commit 294f9cc8 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

compat: (pretend to) implement getpid() on NaCl

parent 60d58695
......@@ -29,8 +29,10 @@
pid_t getpid (void)
{
#ifdef WIN32
#if defined (WIN32)
return (pid_t) GetCurrentProcessId ();
#elif defined (__native_client__)
return 1;
#else
# error Unimplemented!
#endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment