title: Atom.io missing sys/wait.h or allow fork()
body: <p>I am attempting to learn how to concurrently run algorithms in c using fork(). It appears that atom.io won't add sys/wait.h when compiling, but when my exact same code is running on a school server it will compile just fine. Is there a way to add additional header files to atom and allow for it to use fork and wait? Im running the program on windows 10, but the school database uses unix, would that effect the header files?</p>
  
  <p>This is the exact code I am running for a test with fibonacci and is compiled using GCC minGW</p>
  
  <p>I get the simple error of sys/wait.h no such file or directory and it appears that if I comment out sys/wait , "waitpid is no longer declared in this scope"and "Fork was not declared in this scope"</p>
  
  <pre><code>#include &lt;stdio.h&gt;
  #include &lt;sys/types.h&gt;
  #include &lt;unistd.h&gt;
  #include &lt;sys/wait.h&gt;
  
  int main()
  {
  
  int a=0, b=1, n=a+b,i;
  
  printf("Enter the number of a Fibonacci Sequence:\n");
  scanf("%d", &amp;i);
  
  pid_t pid = fork();
  if (pid == 0)
  {
      printf("Child Fibonacci\n");
      printf("0 %d ",n);
      while (i&gt;0) {
          n=a+b;
          printf("%d ", n);
          a=b;
          b=n;
          i--;
          if (i == 0) {
              printf("\nChild ends\n");
      }
   }
  }
      else
      {
      printf("Parent is waiting for child to complete...\n");
      waitpid(pid, NULL, 0);
      printf("Parent ends\n");
  }
  return 0;
  }
  </code></pre>