mirror of https://github.com/citusdata/citus.git
Correctly fix OpenSSL 3.0 warnings (#6502)
In #6038 I tried to fix OpenSSL 3.0 warnings with PG13, but I had made a
mistake when doing that. This actually fixes these warnings.
(cherry picked from commit a477ffdf4b
)
pull/6542/head
parent
a9a9aa1098
commit
bd7ee60991
|
@ -9,20 +9,22 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
#include "postgres.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Make sure that functions marked as deprecated in OpenSSL 3.0 don't trigger
|
* Make sure that functions marked as deprecated in OpenSSL 3.0 don't trigger
|
||||||
* deprecation warnings by indicating that we're using the OpenSSL 1.0.1
|
* deprecation warnings by indicating that we're using the OpenSSL 1.0.1
|
||||||
* compatibile API. Postgres does this by already in PG14, so we should not do
|
* compatibile API. Postgres does this by already in PG14, so we should not do
|
||||||
* it otherwise we get warnings about redefining this value.
|
* it otherwise we get warnings about redefining this value. This needs to be
|
||||||
|
* done before including libpq.h.
|
||||||
*/
|
*/
|
||||||
|
#include "distributed/pg_version_constants.h"
|
||||||
#if PG_VERSION_NUM < PG_VERSION_14
|
#if PG_VERSION_NUM < PG_VERSION_14
|
||||||
#ifndef OPENSSL_API_COMPAT
|
#ifndef OPENSSL_API_COMPAT
|
||||||
#define OPENSSL_API_COMPAT 0x1000100L
|
#define OPENSSL_API_COMPAT 0x1000100L
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "postgres.h"
|
|
||||||
|
|
||||||
#include "distributed/connection_management.h"
|
#include "distributed/connection_management.h"
|
||||||
#include "distributed/memutils.h"
|
#include "distributed/memutils.h"
|
||||||
#include "distributed/worker_protocol.h"
|
#include "distributed/worker_protocol.h"
|
||||||
|
|
Loading…
Reference in New Issue