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

Re: BUG #3304: win32 build fails, because of wrong include

From: Magnus Hagander <magnus(at)hagander(dot)net>
To: oliverst(at)online(dot)de
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #3304: win32 build fails, because of wrong include
Date: 2007-05-24 14:35:33
Message-ID: 4655A2B5.7060709@hagander.net (view raw or flat)
Thread:
Lists: pgsql-bugs
oliverst(at)online(dot)de wrote:
> The following bug has been logged online:
> 
> Bug reference:      3304
> Logged by:          
> Email address:      oliverst(at)online(dot)de
> PostgreSQL version: 8.1.9
> Operating system:   Windows 2000
> Description:        win32 build fails, because of wrong include
> Details: 
> 
> When you set the ENABLE_THREAD_SAFETY define on windows and you try to build
> it, you will get an error in thread.c, because it tries to include the
> pthread.h, which doesn't exist on Windows. It lacks an #ifdef, that will
> include the pthread-win32.h, in case WIN32 is defined.

For 8.1, you need pthreads. There is a package available that provides
the pthread emulation layer. You can get it from
http://sourceware.org/pthreads-win32/

8.3 will remove this requirement and all parts will work with the native
threads.

//Magnus

In response to

pgsql-bugs by date

Next:From: CstdenisDate: 2007-05-24 14:37:43
Subject: Re: BUG #3302: Crash on gist ltree - PANIC: failed to add item to index page
Previous:From: oliverstDate: 2007-05-24 13:33:23
Subject: BUG #3304: win32 build fails, because of wrong include

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