diff options
author | Robin Gareus <robin@gareus.org> | 2014-09-06 17:59:53 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-09-06 21:18:08 +0200 |
commit | eb8ae5053f9f2e69db4262f0f67eeccd7199b1f2 (patch) | |
tree | ddd5e4beb3d6451a135aa79fa0fe5e27a7ac3aa3 /gtk2_ardour/utils_videotl.cc | |
parent | 404a77adb85a7e394c14f0fcfd4087052fe2b453 (diff) |
minimize rebuild after reconfigure:
Don't add VERSIONSTRING to the c-flags of
gtk2_ardour, use a dedicated file instead.
Diffstat (limited to 'gtk2_ardour/utils_videotl.cc')
-rw-r--r-- | gtk2_ardour/utils_videotl.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/gtk2_ardour/utils_videotl.cc b/gtk2_ardour/utils_videotl.cc index 3b5882905b..24a27c1425 100644 --- a/gtk2_ardour/utils_videotl.cc +++ b/gtk2_ardour/utils_videotl.cc @@ -29,6 +29,13 @@ #include "video_image_frame.h" #include "utils_videotl.h" +#ifdef WAF_BUILD +#include "gtk2ardour-version.h" +#endif + +#ifndef ARDOUR_CURL_TIMEOUT +#define ARDOUR_CURL_TIMEOUT (60) +#endif #include "i18n.h" using namespace Gtk; @@ -337,7 +344,7 @@ extern "C" { curl_easy_setopt(curl, CURLOPT_WRITEDATA, (void *)&chunk); curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteMemoryCallback); - curl_easy_setopt(curl, CURLOPT_USERAGENT, ARDOUR_USER_AGENT); + curl_easy_setopt(curl, CURLOPT_USERAGENT, PROGRAM_NAME VERSIONSTRING); curl_easy_setopt(curl, CURLOPT_TIMEOUT, ARDOUR_CURL_TIMEOUT); curl_easy_setopt(curl, CURLOPT_NOSIGNAL, 1); #ifdef CURLERRORDEBUG |