Re: Re: Cygwin PostgreSQL postmaster abort problem

Поиск
Список
Период
Сортировка
От Jason Tishler
Тема Re: Re: Cygwin PostgreSQL postmaster abort problem
Дата
Msg-id 20010104091638.S649@dothill.com
обсуждение исходный текст
Ответ на RE: Re: Cygwin PostgreSQL postmaster abort problem  (Horák Daniel <horak@sit.plzen-city.cz>)
Ответы Re: Re: Cygwin PostgreSQL postmaster abort problem  (Pete Forman <pete.forman@westerngeco.com>)
Список pgsql-ports
Daniel,

On Thu, Jan 04, 2001 at 02:01:46PM +0100, Horák Daniel wrote:
> > Can I assume that dllinit.c is only used by Cygwin ...
>
> Yes, it is used only by Cygwin.

Thanks for the confirmation.

> > Win32)?  If so, then I can surround the contents with:
> >
> >     #include <cygwin/version.h>
> >     #if CYGWIN_VERSION_DLL_MAJOR < 1001
> >     ...
> >     #endif /* CYGWIN_VERSION_DLL_MAJOR */
>
> I think that better will be to use CYGWIN_VERSION_API_MAJOR and
> ..._MINOR. These numbers depend on changes in the library that have
> influence for other applications.

The purpose of the above guard is to include the file contents if the
Cygwin version is less than 1.1.x (i.e. b20.1) and exclude it otherwise.

From cygwin/version.h, we have the following:

    /* We used to use the DLL major/minor to track
       non-backward-compatible interface changes to the API.  Now we
       use an API major/minor number for this purpose. */

If I understand the semantics of CYGWIN_VERSION_API_MAJOR
and CYGWIN_VERSION_API_MINOR correctly, then it is possibly
(although unlikely) for different Cygwin versions to have the same
CYGWIN_VERSION_API_MAJOR and CYGWIN_VERSION_API_MINOR values.  Hence, this
is why I feel that CYGWIN_VERSION_DLL_MAJOR is better suited in this case.
Additionally, I have no idea what combination of CYGWIN_VERSION_API_MAJOR
and CYGWIN_VERSION_API_MINOR corresponds to b20.1.  Do you?

Thanks,
Jason

--
Jason Tishler
Director, Software Engineering       Phone: +1 (732) 264-8770 x235
Dot Hill Systems Corp.               Fax:   +1 (732) 264-8798
82 Bethany Road, Suite 7             Email: Jason.Tishler@dothill.com
Hazlet, NJ 07730 USA                 WWW:   http://www.dothill.com

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

Предыдущее
От: Horák Daniel
Дата:
Сообщение: RE: Re: Cygwin PostgreSQL postmaster abort problem
Следующее
От: Horák Daniel
Дата:
Сообщение: RE: Re: Cygwin PostgreSQL postmaster abort problem