-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Windows] Missing 'sleep()' for MSVC #10295
Conversation
That seems clever: $ git grep -l 'sleep(' *.c
lib1515.c
lib1542.c
lib2301.c
lib2302.c
lib2304.c |
I agree. server\util.h already does something similar: Lines 45 to 49 in c12fb3d
|
So what about this PR? Should I or @bagder merge it and change the other files in another PR? |
You could update this PR with your proposed changes then force push to lib2304-sleep, for example git checkout lib2304-sleep curl_setup.h is included by test.h so you don't need to check _WIN32 just WIN32 Lines 48 to 50 in c12fb3d
Review push access guidelines, specifically commit style, for example |
Sorry, no. That's beyond my git knowledge. |
Ok, I understand that, but it doesn't have to be. Amending a single commit can be done in (Also, as described in the guidelines you should work in your own fork of the curl repo. There are some exceptions for this suchas @bagder.) Here's a screenshot from git gui |
@gvanem if you want I can finish this |
@jay Yes, please do. |
.. because sleep() is used in some libtests. Closes #10295
.. because sleep() is used in some libtests. Closes #10295
Thanks |
.. because sleep() is used in some libtests. Closes curl#10295
Done similar to how
lib1515.c
andlib1542.c
does it for Windows.Although MinGW do have
sleep()
, this patch should not hurt.But perhaps add this to
test.h
instead?