shithub: openh264

Download patch

ref: 965347e171074abfb643b2a404305965f559b910
parent: a0984298743f4886b19cc216e1d06bb640bb70e6
author: Wez <wez@chromium.org>
date: Tue Mar 20 12:27:02 EDT 2018

Fix WelsThreadLib.cpp to build under Fuchsia

--- a/codec/common/src/WelsThreadLib.cpp
+++ b/codec/common/src/WelsThreadLib.cpp
@@ -259,7 +259,7 @@
   err = pthread_attr_init (&at);
   if (err)
     return err;
-#ifndef __ANDROID__
+#if !defined(__ANDROID__) && !defined(__Fuchsia__)
   err = pthread_attr_setscope (&at, PTHREAD_SCOPE_SYSTEM);
   if (err)
     return err;
@@ -560,5 +560,3 @@
 }
 
 #endif
-
-