title: How can I express wait(NULL) without getting compilation warning?
body: <p>If I compile my program with <code>cc</code> then it works. But I must compile using <code>gcc -pedantic -Wall -ansi -O4</code>. Then I get a warning for the statement <code>wait(NULL)</code> </p>
  
  <pre><code>miniShell.c: In function ‘main’:
  miniShell.c:84:13: warning: implicit declaration of function ‘wait’ [-Wimplicit-function-declaration]
               wait(NULL);
               ^
  </code></pre>
  
  <p>Can I rewrite it to please the compiler?</p>