Changeset 3059


Ignore:
Timestamp:
Jan 13, 2010 9:28:06 PM (10 years ago)
Author:
bennylp
Message:

Initial fixes for #993 (OpenSolaris? issues)

  • configure script patch for FIONBIO and SIOCGIFFLAGS errors
Location:
pjproject/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure

    r3058 r3059  
    47184718 
    47194719 
     4720ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default" 
     4721if test "x$ac_cv_header_sys_filio_h" = x""yes; then : 
     4722  $as_echo "#define PJ_HAS_SYS_FILIO_H 1" >>confdefs.h 
     4723 
     4724fi 
     4725 
     4726 
     4727ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default" 
     4728if test "x$ac_cv_header_sys_sockio_h" = x""yes; then : 
     4729  $as_echo "#define PJ_HAS_SYS_SOCKIO_H 1" >>confdefs.h 
     4730 
     4731fi 
     4732 
     4733 
    47204734ac_fn_c_check_header_mongrel "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default" 
    47214735if test "x$ac_cv_header_time_h" = x""yes; then : 
  • pjproject/trunk/aconfigure.ac

    r3058 r3059  
    173173AC_CHECK_HEADER(sys/timeb.h,[AC_DEFINE(PJ_HAS_SYS_TIMEB_H,1)]) 
    174174AC_CHECK_HEADER(sys/types.h,[AC_DEFINE(PJ_HAS_SYS_TYPES_H,1)]) 
     175AC_CHECK_HEADER(sys/filio.h,[AC_DEFINE(PJ_HAS_SYS_FILIO_H,1)]) 
     176AC_CHECK_HEADER(sys/sockio.h,[AC_DEFINE(PJ_HAS_SYS_SOCKIO_H,1)]) 
    175177AC_CHECK_HEADER(time.h,[AC_DEFINE(PJ_HAS_TIME_H,1)]) 
    176178AC_CHECK_HEADER(unistd.h,[AC_DEFINE(PJ_HAS_UNISTD_H,1)]) 
  • pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in

    r2970 r3059  
    7272#undef PJ_HAS_SYS_TIMEB_H 
    7373#undef PJ_HAS_SYS_TYPES_H 
     74#undef PJ_HAS_SYS_FILIO_H 
     75#undef PJ_HAS_SYS_SOCKIO_H 
    7476#undef PJ_HAS_TIME_H 
    7577#undef PJ_HAS_UNISTD_H 
  • pjproject/trunk/pjlib/include/pj/compat/socket.h

    r2962 r3059  
    138138#if defined(PJ_HAS_UNISTD_H) && PJ_HAS_UNISTD_H != 0 
    139139#  include <unistd.h> 
     140#endif 
     141 
     142#if defined(PJ_HAS_SYS_FILIO_H) && PJ_HAS_SYS_FILIO_H != 0 
     143#   include <sys/filio.h> 
     144#endif 
     145 
     146#if defined(PJ_HAS_SYS_SOCKIO_H) && PJ_HAS_SYS_SOCKIO_H != 0 
     147#   include <sys/sockio.h> 
    140148#endif 
    141149 
Note: See TracChangeset for help on using the changeset viewer.