Re: CVS head broken on win32?

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: CVS head broken on win32?
Дата
Msg-id 42377759.3060001@samurai.com
обсуждение исходный текст
Ответ на Re: CVS head broken on win32?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Tom Lane wrote:
> Um.  Shouldn't that whole file be #ifndef EXEC_BACKEND?

Woops, sorry about that.

We can't make the file #ifndef EXEC_BACKEND since fork_process() is used
by the Unix implementation of internal_forkexec(), but #ifndef WIN32
should work. I've applied the attached patch to HEAD.

-Neil
Index: src/backend/postmaster/fork_process.c
===================================================================
RCS file: /var/lib/cvs/pgsql/src/backend/postmaster/fork_process.c,v
retrieving revision 1.2
diff -c -r1.2 fork_process.c
*** src/backend/postmaster/fork_process.c    13 Mar 2005 23:27:38 -0000    1.2
--- src/backend/postmaster/fork_process.c    15 Mar 2005 23:53:32 -0000
***************
*** 16,21 ****
--- 16,22 ----
  #include <sys/time.h>
  #include <unistd.h>

+ #ifndef WIN32
  /*
   * Wrapper for fork(). Return values are the same as those for fork():
   * -1 if the fork failed, 0 in the child process, and the PID of the
***************
*** 80,82 ****
--- 81,84 ----

      return result;
  }
+ #endif /* ! WIN32 */

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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: change palloc to malloc
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32