1
0
mirror of https://github.com/facebook/proxygen.git synced 2026-10-24 01:33:54 +03:00

Gate const c-ares callback buffer on 1.34.7 only (#650)

Summary:
Pull Request resolved: https://github.com/facebook/proxygen/pull/650

c-ares 1.34.7 made `ares_callback`'s buffer const; 1.34.8 reverted it (c-ares #1245). Only 1.34.7 has the const signature, so gate on it exactly rather than >=.

Fixes https://github.com/facebook/proxygen/issues/649

#proxygen

Reviewed By: sandarsh

Differential Revision: D123498859

fbshipit-source-id: 4debc027416932343df5e1178fba7e6c6833859e
This commit is contained in:
Alan Frindell
2026-10-06 11:13:14 -07:00
committed by meta-codesync[bot]
parent d331b4bc0f
commit b40f5d6b76

View File

@@ -24,7 +24,7 @@
#include "proxygen/lib/dns/DNSResolver.h"
namespace proxygen {
#if ARES_VERSION >= 0x012207
#if ARES_VERSION == 0x012207
using AresCallbackBuffer = const unsigned char;
#else
using AresCallbackBuffer = unsigned char;