Ignore:
Timestamp:
Nov 1, 2005 4:42:51 PM (17 years ago)
Author:
bennylp
Message:

Added suppor /and fix things for SunOS port

File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/main/pjlib/src/pjlib-test/main.c

    r1 r2  
    3636#endif 
    3737 
     38#if defined(PJ_SUNOS) && PJ_SUNOS!=0 
     39#include <signal.h> 
     40static void init_signals() 
     41{ 
     42    struct sigaction act; 
     43 
     44    memset(&act, 0, sizeof(act)); 
     45    act.sa_handler = SIG_IGN; 
     46 
     47    sigaction(SIGALRM, &act, NULL); 
     48} 
     49 
     50#else 
     51#define init_signals() 
     52#endif 
     53 
    3854int main(int argc, char *argv[]) 
    3955{ 
     
    4157 
    4258    boost(); 
     59    init_signals(); 
    4360 
    4461    while (argc > 1) { 
Note: See TracChangeset for help on using the changeset viewer.