avoid exporting a sleep() symbol from libcrypto
Since it seems only MSVC lacks sleep(), and it's only used by apps, lets special-case that and make it available as a static inline function instead.
This commit is contained in:
@@ -242,10 +242,4 @@ int gettimeofday(struct timeval * tp, struct timezone * tzp)
|
||||
return 0;
|
||||
}
|
||||
|
||||
unsigned int sleep(unsigned int seconds)
|
||||
{
|
||||
Sleep(seconds * 1000);
|
||||
return seconds;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user