Good afternoon to the group,

As I commented earlier an unresolvable reference to usleep in usleep.c was 
keeping me from getting a compile as I was bringing up the tool chain.    I 
initially got around this by commenting out the call to usleep however after I 
convinced myself I had a working build I addressed this issue.

usleep.c is a windows specific file (only built in windows make files) that 
contains the stub function usleep_ (which is called by the function usleep in 
cutils.c).   The intent was to be an interface to the windows specific usleep 
function.   This routine has been deprecated within windows and even 
referencing the include file where it is defined, unistd.h, does not fix the 
issue.

The places where usleep_ is used within WSJT seem to all have statements like 
usleep_ (xxx * 1000) so the use of the current preferred windows sleep function 
which is in milliseconds should not present an issue.   I replaced the code 
within usleep.c with the following:

/* usleep(3) */
#include <windows.h>
int usleep_(unsigned long *microsec)
{
  Sleep((*microsec) / 1000L);
  return(0);
}

This seems to work fine.

73 de Bill ND0B
_______________________________________________
Wsjt-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/wsjt-devel

Reply via email to