Re: Some additions/#ifdefs to target new OS NetWare

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Some additions/#ifdefs to target new OS NetWare
Дата
Msg-id 4018.1015255649@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Some additions/#ifdefs to target new OS NetWare  (Ulrich Neumann <u_neumann@gne.de>)
Список pgsql-hackers
Ulrich Neumann <u_neumann@gne.de> writes:
> During my work i�ve found the following that need to be added to
> the sources in order to compile postgreSQL on NetWare.

We'd appreciate a patch (diff -c format), not random snippets of code.

> 2. in bootstrap.c/cleanup()
> #ifdef N_PLAT_NLM
>     NWCleanUp();
> #endif

Unlikely to be the right place for it, if it's needed at all which I
doubt.  (Surely NetWare can manage to provide a *standard* C execution
environment, in which any platform-specific startup and cleanup stuff
is done in the C library?)

> 4. in fd.c/filepath()

> #ifdef N_PLAT_NLM
>     buf = (char *) palloc(strlen(filename) + 1);
>     strcpy(buf, filename);
> #else

I don't believe this either.

> 7. in dynamic_loader.h
> #ifndef N_PLAT_NLM
> extern void *pg_dlopen(char *filename);
> extern PGFunction pg_dlsym(void *handle, char *funcname);
> extern void pg_dlclose(void *handle);
> extern char *pg_dlerror(void);
> #endif

Nope.  Make a platform-specific implementation of pg_dlopen and friends,
just like all the other platforms have done.
        regards, tom lane


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

Предыдущее
От: Hannu Krosing
Дата:
Сообщение: Re: Oracle vs PostgreSQL in real life
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Please, apply patch for contrib/tsearch