Created
November 25, 2015 13:07
-
-
Save deltheil/2691bc59a6a6ed03b1cb to your computer and use it in GitHub Desktop.
Check if libcurl was built with async DNS support
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <curl/curl.h> | |
int | |
main(void) | |
{ | |
curl_version_info_data *info = curl_version_info(CURLVERSION_NOW); | |
printf("async DNS: %d\n", !!(info->features & CURL_VERSION_ASYNCHDNS)); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment