compat: (pretend to) implement getpid() on NaCl
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Sep 2012 16:11:07 +0000 (19:11 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 8 Sep 2012 16:14:32 +0000 (19:14 +0300)
compat/getpid.c

index 2946982..7e120f2 100644 (file)
 
 pid_t getpid (void)
 {
-#ifdef WIN32
+#if defined (WIN32)
     return (pid_t) GetCurrentProcessId ();
+#elif defined (__native_client__)
+    return 1;
 #else
 # error Unimplemented!
 #endif