*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
pid_t getpid (void)
{
-#ifdef WIN32
+#if defined (WIN32)
return (pid_t) GetCurrentProcessId ();
+#elif defined (__native_client__)
+ return 1;
#else
# error Unimplemented!
#endif