Skip site navigation (1) Skip section navigation (2)

Re: fsync under win32

From: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
To: Andreas Pflug <pgadmin(at)pse-consulting(dot)de>
Cc: pgsql-patches(at)postgresql(dot)org
Subject: Re: fsync under win32
Date: 2005-06-16 17:53:59
Message-ID: 200506161753.j5GHrxG03526@candle.pha.pa.us (view raw or flat)
Thread:
Lists: pgsql-patches
Andreas Pflug wrote:
> The latest fsync patch broke win32 build. There's no fsync under win32, 
> so the #define fsync(fd) _commit(fd) which was removed from port/win32.h 
> in version 1.45 is still necessary.
> 
> Regards,
> Andreas

> Index: win32.h
> ===================================================================
> RCS file: /projects/cvsroot/pgsql/src/include/port/win32.h,v
> retrieving revision 1.45
> diff -u -r1.45 win32.h
> --- win32.h	20 May 2005 14:53:26 -0000	1.45
> +++ win32.h	16 Jun 2005 13:43:50 -0000
> @@ -19,6 +19,7 @@
>  #define HAVE_FSYNC_WRITETHROUGH
>  #define HAVE_FSYNC_WRITETHROUGH_ONLY
>  #define ftruncate(a,b)	chsize(a,b)
> +#define fsync(fd) _commit(fd)
>  
>  #define USES_WINSOCK

Patch applied, with comment.  Thanks.

-- 
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman(at)candle(dot)pha(dot)pa(dot)us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

In response to

pgsql-patches by date

Next:From: Andrew DunstanDate: 2005-06-17 01:03:04
Subject: Re: [PATCHES] Escape handling in strings
Previous:From: Tom LaneDate: 2005-06-16 16:00:41
Subject: Re: [PATCHES] Escape handling in strings

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group