Navigation


Changeset 249:6e6ada749a11 in freeDiameter


Ignore:
Timestamp:
Apr 2, 2010, 3:55:26 PM (14 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Replaced clock_nanosleep since it is missing on FreeBSD platform

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • INSTALL.FreeBSD

    r244 r249  
    48488) make, run, enjoy :)
    4949
    50 ------
    51 STATUS
    52 ------
    53 *) clock_nanosleep:
    54   This function will prevent the build of the tests, it needs to be fixed (TODO)
    55   Workaround: use -DSKIP_TESTS:BOOL=ON
    56  
    5750
    5851
  • freeDiameter/tests/testsess.c

    r6 r249  
    213213                timeout.tv_sec = 0;
    214214                timeout.tv_nsec= 50000000; /* 50 ms */
    215                 CHECK( 0, clock_nanosleep(CLOCK_REALTIME, 0, &timeout, NULL) );
     215                CHECK( 0, nanosleep(&timeout, NULL) );
    216216               
    217217                CHECK( 0, fd_sess_fromsid( TEST_SID, strlen(TEST_SID), &sess1, &new ) );
     
    339339                timeout.tv_sec = 0;
    340340                timeout.tv_nsec= 50000000; /* 50 ms */
    341                 CHECK( 0, clock_nanosleep(CLOCK_REALTIME, 0, &timeout, NULL) );
     341                CHECK( 0, nanosleep(&timeout, NULL) );
    342342                CHECK( 0, freed[0] );
    343343                CHECK( 1, freed[1] );
Note: See TracChangeset for help on using the changeset viewer.