title: How to replace or resolve __TVOS_PROHIBITED dependencies in unistd.h
body: <p>I'm trying to compile a dependent libraries from the source code and I've got this error:</p>
  
  <blockquote>
    <p>/Applications/Xcode.app/Contents/Developer/Platforms/AppleTVOS.platform/Developer/SDKs/AppleTVOS9.0.sdk/usr/include/unistd.h:446:8:
    note: 'fork' has been explicitly marked unavailable here pid_t<br>
    fork(void) __WATCHOS_PROHIBITED __TVOS_PROHIBITED;</p>
  </blockquote>
  
  <p>Is there any way to resolve this issue?</p>
  
  <p>The thing is that I don't actually even need this functionality. When I compile this code for iOS and run it under tvOS then it works.
  But I can not submit the application because it contains code compiled for iOS.</p>
  
  <p>What would be the good trick to substitute there a dummy fork() function so it compiles OK (believing that it is not actually used by my specific use-cases).</p>