Fixed Watcom linking error when program makes use of select_s but W32_NO_8087 has been defined
Error! E2028: _w32_timeval_diff_ is an undefined reference
To replicate the problem: checkout adeb8e011d4499c2c4d876b1078e339add992461 and build WATTCPWL.LIB with #define USE_BSD_API then link the following test program against it
/* Compile with `OWCC -I INC LIB\WATTCPWL.LIB TEST.C` */
#include <stdio.h>
#include <stdlib.h>
#include <sys/select.h>
void foo(void) {
/* Isn't run, just testing select() can be linked */
select(0, NULL, NULL, NULL, NULL);
}
int main (int argc, char *argv[]) {
puts("I compiled!");
return 0;
}
Fixed Watcom linking error when program makes use of
select_s
butW32_NO_8087
has been definedTo replicate the problem: checkout adeb8e011d4499c2c4d876b1078e339add992461 and build
WATTCPWL.LIB
with#define USE_BSD_API
then link the following test program against it