• Peter Wu's avatar
    libzrtp: update zrtp_sleep for modern libc · 21c145b1
    Peter Wu 提交于
    usleep is deprecated and disabled in glibc 2.12 unless requested. Use
    nanosleep instead if available.
    
    This fixes the following compiler warning:
    
        ./src/zrtp_iface_scheduler.c: In function 'zrtp_sleep':
        ./src/zrtp_iface_scheduler.c:96:2: warning: implicit declaration of
        function 'usleep' [-Wimplicit-function-declaration]
          usleep(msec*1000);
          ^
    21c145b1
configure.ac 3.1 KB