Changeset 1537:7e44b72d3095 in roaraudio


Ignore:
Timestamp:
04/12/09 02:17:56 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

also support old style select() without sys/select.h

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • configure

    r1520 r1537  
    997997echo -n 'checking for select()... ' 
    998998cat <<EOF > $TF_C 
     999#ifndef NO_SYS_SELECT_H 
    9991000#include <sys/select.h> 
     1001#endif 
    10001002#include <sys/time.h> 
    10011003#include <sys/types.h> 
     
    10211023then 
    10221024 echo '#define ROAR_HAVE_SELECT' >&3 
    1023  echo yes 
     1025 echo '#define ROAR_HAVE_H_SYS_SELECT' >&3 
     1026 echo yes, POSIX.1-2001 
     1027elif $CCTF -DNO_SYS_SELECT_H 2> /dev/null; 
     1028then 
     1029 echo '#define ROAR_HAVE_SELECT' >&3 
     1030 echo yes, old style 
    10241031else 
    10251032 echo no 
  • roard/include/roard.h

    r1494 r1537  
    3434#endif 
    3535 
    36 #ifdef ROAR_HAVE_SELECT 
     36#if defined(ROAR_HAVE_SELECT) && defined(ROAR_HAVE_H_SYS_SELECT) 
    3737#include <sys/select.h> 
    3838#endif 
Note: See TracChangeset for help on using the changeset viewer.