Skip to content

Commit

Permalink
[BUILD] Build break with old curl, macro CURL_VERSION_BITS unknown (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
marcalff authored Apr 19, 2023
1 parent 7cb7654 commit 82f2828
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ Increment the:

## [Unreleased]

* [BUILD] Build break with old curl, macro CURL_VERSION_BITS unknown
[#2102](https://github.com/open-telemetry/opentelemetry-cpp/pull/2102)

Deprecations:

* The Jaeger Exporter is deprecated, see [DEPRECATED](./DEPRECATED.md) for details.
Expand Down
5 changes: 5 additions & 0 deletions ext/src/http/client/curl/http_operation_curl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@
#include "opentelemetry/ext/http/client/curl/http_client_curl.h"
#include "opentelemetry/sdk/common/global_log_handler.h"

// CURL_VERSION_BITS was added in CURL 7.43.0
#ifndef CURL_VERSION_BITS
# define CURL_VERSION_BITS(x, y, z) ((x) << 16 | (y) << 8 | (z))
#endif

OPENTELEMETRY_BEGIN_NAMESPACE
namespace ext
{
Expand Down

0 comments on commit 82f2828

Please sign in to comment.