Ignore:
Timestamp:
Feb 7, 2008 1:11:39 PM (16 years ago)
Author:
bennylp
Message:

Ticket #470, #471, and #472: Compile error when semaphore.h is not present, Compilation error if pthread_mutexattr_set_type() is not present, and Problem with setting up FD_SETSIZE

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/trunk/pjlib/include/pj/compat/os_auto.h.in

    r1738 r1783  
    5555#undef PJ_HAS_NET_IF_H 
    5656#undef PJ_HAS_IFADDRS_H 
     57#undef PJ_HAS_SEMAPHORE_H 
    5758#undef PJ_HAS_SETJMP_H 
    5859#undef PJ_HAS_STDARG_H 
     
    7980#undef PJ_SOCK_HAS_INET_NTOP 
    8081#undef PJ_SOCK_HAS_GETADDRINFO 
     82 
     83/* On these OSes, semaphore feature depends on semaphore.h */ 
     84#if defined(PJ_HAS_SEMAPHORE_H) && PJ_HAS_SEMAPHORE_H!=0 
     85#   define PJ_HAS_SEMAPHORE     1 
     86#else 
     87#   define PJ_HAS_SEMAPHORE     0 
     88#endif 
     89 
     90/* Do we have pthread_mutexattr_settype()? */ 
     91#undef PJ_HAS_PTHREAD_MUTEXATTR_SETTYPE 
     92 
     93/* Does pthread_mutexattr_t has "recursive" member?  */ 
     94#undef PJ_PTHREAD_MUTEXATTR_T_HAS_RECURSIVE 
    8195 
    8296/* Set 1 if native sockaddr_in has sin_len member.  
Note: See TracChangeset for help on using the changeset viewer.