Ignore:
Timestamp:
Jan 13, 2010 1:09:45 PM (14 years ago)
Author:
bennylp
Message:

Initial OpenBSD fixes (#994):
pjlib:

  • Autoconf fixes in detecting header availability
  • Undefined sched_get_priority_max() and sched_get_priority_min()
    • protect with #ifdef _POSIX_PRIORITY_SCHEDULING, and
    • return hardcoded (0, 31) if OpenBSD macro is declared
  • Better GUID generation

pjlib-test:

  • Reduce the loop in PJILB activesock test
  • Fixed bug in ioqueue unregistration test which caused assertion error in destroying mutex

pjlib-util-test:

  • Fixed bug in pjlib-util resolver test
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/aconfigure.ac

    r2973 r3057  
    147147AC_CHECK_HEADER(netinet/in.h,[AC_DEFINE(PJ_HAS_NETINET_IN_H,1)]) 
    148148AC_CHECK_HEADER(netinet/ip.h,[AC_DEFINE(PJ_HAS_NETINET_IP_H,1)],[], 
    149                  [#if PJ_HAS_NETINET_IN_SYSTM_H 
     149                 [#if PJ_HAS_SYS_TYPES_H 
     150                  #     include <sys/types.h> 
     151                  #endif 
     152                  #if PJ_HAS_NETINET_IN_SYSTM_H 
    150153                  #     include <netinet/in_systm.h> 
     154                  #endif 
     155                  #if PJ_HAS_NETINET_IN_H 
     156                  #     include <netinet/in.h> 
    151157                  #endif 
    152158                 ]) 
     
    181187AC_CHECK_HEADER(uuid/uuid.h,[ac_has_uuid_h=1]) 
    182188AC_CHECK_HEADER(net/if.h,[AC_DEFINE(PJ_HAS_NET_IF_H,1)],[], 
    183                  [#if PJ_HAS_SYS_SOCKET_H 
     189                 [#if PJ_HAS_SYS_TYPES_H 
     190                  #     include <sys/types.h> 
     191                  #endif 
     192                  #if PJ_HAS_SYS_SOCKET_H 
     193 
    184194                  #     include <sys/socket.h> 
    185195                  #endif 
    186196                 ]) 
    187  
    188197AC_MSG_RESULT([Setting PJ_OS_NAME to $target]) 
    189198AC_DEFINE_UNQUOTED(PJ_OS_NAME,["$target"]) 
     
    257266dnl # Determine if socklen_t is available 
    258267AC_MSG_CHECKING([if socklen_t is available]) 
    259 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/socket.h>]], 
     268AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <sys/types.h> 
     269                                     #include <sys/socket.h>]], 
    260270                                   [socklen_t xxx = 0;])], 
    261271                  [AC_DEFINE(PJ_HAS_SOCKLEN_T,1) 
     
    755765                AC_SUBST(libcrypto_present) 
    756766                AC_CHECK_HEADER(openssl/ssl.h,[openssl_h_present=1]) 
     767                AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) 
    757768                AC_CHECK_LIB(ssl,SSL_library_init,[libssl_present=1 && LIBS="$LIBS -lssl"]) 
    758                 AC_CHECK_LIB(crypto,ERR_load_BIO_strings,[libcrypto_present=1 && LIBS="$LIBS -lcrypto"]) 
    759769                if test "x$openssl_h_present" = "x1" -a "x$libssl_present" = "x1" -a "x$libcrypto_present" = "x1"; then 
    760770                        AC_MSG_RESULT([OpenSSL library found, SSL support enabled]) 
Note: See TracChangeset for help on using the changeset viewer.