[vlc-commits] compat: (pretend to) implement getpid() on NaCl

Rémi Denis-Courmont git at videolan.org
Sat Sep 8 18:14:36 CEST 2012


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | 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



More information about the vlc-commits mailing list