vlc | branch: master | Rémi Denis-Courmont <[email protected]> | Sat Sep  8 
19:11:07 2012 +0300| [294f9cc85845ef613b6000def2af3240c44cc9db] | committer: 
Rémi Denis-Courmont

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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=294f9cc85845ef613b6000def2af3240c44cc9db
---

 compat/getpid.c |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/compat/getpid.c b/compat/getpid.c
index 2946982..7e120f2 100644
--- a/compat/getpid.c
+++ b/compat/getpid.c
@@ -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

_______________________________________________
vlc-commits mailing list
[email protected]
http://mailman.videolan.org/listinfo/vlc-commits

Reply via email to