mirror of
https://github.com/postgres/postgres.git
synced 2025-11-16 15:02:33 +03:00
Detect presence of SSL_get_current_compression
Apparently we still build against OpenSSL so old that it doesn't have this function, so add an autoconf check for it to make the buildfarm happy. If the function doesn't exist, always return that compression is disabled, since presumably the actual compression functionality is always missing. For now, hardcode the function as present on MSVC, since we should hopefully be well beyond those old versions on that platform.
This commit is contained in:
@@ -430,6 +430,9 @@
|
||||
/* Define to 1 if you have the `srandom' function. */
|
||||
#undef HAVE_SRANDOM
|
||||
|
||||
/* Define to 1 if you have the `SSL_get_current_compression' function. */
|
||||
#undef HAVE_SSL_GET_CURRENT_COMPRESSION
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
|
||||
@@ -337,6 +337,9 @@
|
||||
/* Define to 1 if you have the `srandom' function. */
|
||||
/* #undef HAVE_SRANDOM */
|
||||
|
||||
/* Define to 1 if you have the `SSL_get_current_compression' function. */
|
||||
#define HAVE_SSL_GET_CURRENT_COMPRESSION 1
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
/* #undef HAVE_STDINT_H */
|
||||
|
||||
|
||||
@@ -420,6 +420,10 @@ extern void unsetenv(const char *name);
|
||||
extern void srandom(unsigned int seed);
|
||||
#endif
|
||||
|
||||
#ifndef HAVE_SSL_GET_CURRENT_COMPRESSION
|
||||
#define SSL_get_current_compression(x) 0
|
||||
#endif
|
||||
|
||||
/* thread.h */
|
||||
extern char *pqStrerror(int errnum, char *strerrbuf, size_t buflen);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user