Re: Missing include in be-secure-openssl.c?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Missing include in be-secure-openssl.c?
Дата
Msg-id 284247.1635996826@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Missing include in be-secure-openssl.c?  (Thomas Munro <thomas.munro@gmail.com>)
Ответы Re: Missing include in be-secure-openssl.c?  (Thomas Munro <thomas.munro@gmail.com>)
Список pgsql-hackers
Thomas Munro <thomas.munro@gmail.com> writes:
> Ahh, I think this contains some relevant bits, and we have indeed
> messed around with mentioned Windows headers in master.
> https://stackoverflow.com/questions/49504648/x509-name-macro-in-c-wont-compile/49504794

Oooh .... note the comment there about

    This helped me too, but I found the simplest thing to do was just make sure the OpenSSL headers were #included last
inmy source file. –  

So the fact that be-secure-openssl.c and fe-secure-openssl.c
are including things in different orders *is* relevant.  I'd
previously discovered this bit in OpenSSL's headers (ossl_typ.h):

# ifdef _WIN32
#  undef X509_NAME
...
#endif
...
typedef struct X509_name_st X509_NAME;

So that will work around the problem as long as it's #include'd
after the relevant Windows headers.

But I don't get the point about where HEAD is different from v14?
be-secure-openssl.c isn't.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: "houzj.fnst@fujitsu.com"
Дата:
Сообщение: RE: row filtering for logical replication
Следующее
От: Thomas Munro
Дата:
Сообщение: Re: Missing include in be-secure-openssl.c?