Changeset 1386:bd9f09baf2b1 in roaraudio


Ignore:
Timestamp:
03/25/09 14:22:00 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

test for wait needs to include <string.h>, also only inlcude <sys/wait.h> if we have wait()

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1385 r1386  
    656656echo -n 'checking for wait()... ' 
    657657 
    658 echo '#include <sys/wait.h>'      > $TF_C 
     658echo '#include <string.h>'        >  $TF_C 
     659echo '#include <sys/wait.h>'      >> $TF_C 
    659660echo 'int main (void) { wait(NULL); return 0; }' >> $TF_C 
    660661 
  • include/libroar/libroar.h

    r1374 r1386  
    4444#include <stdarg.h> 
    4545 
     46#ifdef ROAR_HAVE_WAIT 
    4647#include <sys/wait.h> 
     48#endif 
    4749 
    4850#include <fcntl.h> 
Note: See TracChangeset for help on using the changeset viewer.