MSVC 2005 build fix (#13408)

This commit is contained in:
Cthulhu-throwaway 2021-12-24 10:58:18 -03:00 committed by GitHub
parent a28e226ef4
commit 736ab4c964
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View File

@ -20,6 +20,10 @@
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#if !defined(HAVE_SOCKET_LEGACY) && defined(_WIN32)
#pragma comment(lib, "Iphlpapi")
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>

View File

@ -20,6 +20,10 @@
#pragma comment(lib, "ws2_32") #pragma comment(lib, "ws2_32")
#endif #endif
#ifdef _WIN32
#pragma comment(lib, "Iphlpapi")
#endif
#include <stdio.h> #include <stdio.h>
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h> #include <sys/types.h>