Re: CVS head broken on win32? - Mailing list pgsql-hackers

From Neil Conway
Subject Re: CVS head broken on win32?
Date
Msg-id 42377759.3060001@samurai.com
Whole thread Raw
In response to Re: CVS head broken on win32?  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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 by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: change palloc to malloc
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] UNICODE/UTF-8 on win32