Skip to content

Instantly share code, notes, and snippets.

@deltheil
Created November 25, 2015 13:07
Show Gist options
  • Save deltheil/2691bc59a6a6ed03b1cb to your computer and use it in GitHub Desktop.
Save deltheil/2691bc59a6a6ed03b1cb to your computer and use it in GitHub Desktop.
Check if libcurl was built with async DNS support
#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